 environmentDataProvider = require 'app/userenvironmentdataprovider'
 
 
-_machineEventsCache = {}
+_eventsCache =
+  machine    : {}
+  stack      : no
 
 
 _bindMachineEvents = (environmentData) ->


_bindStackEvents = ->

  { reactor, computeController } = kd.singletons

  computeController.on 'StackRevisionChecked', (stack) ->


  machines.map (machine, id) ->

    return  if _eventsCache.machine[id]

    _eventsCache.machine[id] = yes

    computeController.on "public-#{id}", (event) ->

