From e18a162b663e5e0a924d3a884ad1c64f75e8cf8d Mon Sep 17 00:00:00 2001 From: Adam Byrtek Date: Tue, 24 Feb 2015 20:57:59 +0000 Subject: Store last events for all widgets Even the ones that haven't been initialized yet. --- javascripts/dashing.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'javascripts') 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) -- cgit v1.2.3