   data = JSON.parse(e.data)
   if Dashing.debugMode
     console.log("Received data for dashboards", data)
-  Dashing.fire data.event, data
+  if data.dashboard is '*' or window.location.pathname is "/#{data.dashboard}"
+    Dashing.fire data.event, data
 
 $(document).ready ->
   Dashing.run()

            @[k] = num
            @set k, to
          , 10

Dashing.widgets = widgets = {}
Dashing.lastEvents = lastEvents = {}


class window.Dashing extends Batman.App
  @on 'reload', (data) ->
    window.location.reload(true)

  @root ->
Dashing.params = Batman.URI.paramsFromQuery(window.location.search.slice(1));
