We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b32636b commit efc78f6Copy full SHA for efc78f6
javascripts/dashing.coffee
@@ -100,12 +100,13 @@ source.addEventListener 'error', (e)->
100
101
source.addEventListener 'message', (e) =>
102
data = JSON.parse(e.data)
103
- if Dashing.debugMode
104
- console.log("Received data for #{data.id}", data)
105
- lastEvents[data.id] = data
106
- if widgets[data.id]?.length > 0
107
- for widget in widgets[data.id]
108
- widget.receiveData(data)
+ if lastEvents[data.id]?.updatedAt != data.updatedAt
+ if Dashing.debugMode
+ console.log("Received data for #{data.id}", data)
+ lastEvents[data.id] = data
+ if widgets[data.id]?.length > 0
+ for widget in widgets[data.id]
109
+ widget.receiveData(data)
110
111
112
$(document).ready ->
0 commit comments