diff options
author | Adam Byrtek <adambyrtek@gmail.com> | 2015-02-24 20:57:59 +0000 |
---|---|---|
committer | Adam Byrtek <adambyrtek@gmail.com> | 2015-02-24 20:58:44 +0000 |
commit | e18a162b663e5e0a924d3a884ad1c64f75e8cf8d (patch) | |
tree | 9aa3b52fc08a3b6709f3a84c0277ca8b1732f82c /javascripts | |
parent | 6914d99bda53f7732988a61b639165b54d9b8cfd (diff) |
Store last events for all widgets
Even the ones that haven't been initialized yet.
Diffstat (limited to 'javascripts')
-rw-r--r-- | javascripts/dashing.coffee | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/javascripts/dashing.coffee b/javascripts/dashing.coffee index c66128d..f41a279 100644 --- a/javascripts/dashing.coffee +++ b/javascripts/dashing.coffee @@ -114,8 +114,8 @@ source.addEventListener 'message', (e) -> 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 - lastEvents[data.id] = data for widget in widgets[data.id] widget.receiveData(data) |