From: Marek Janda Date: Tue, 23 Jun 2015 18:04:11 +0000 (+0200) Subject: for..in -> normal for loop X-Git-Tag: v2.0.0~45^2~3 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=a02a53659ac6e1a81fd1cad0c404104a17cd653b;p=dygraphs.git for..in -> normal for loop --- diff --git a/src/extras/synchronizer.js b/src/extras/synchronizer.js index bd75050..16c042e 100644 --- a/src/extras/synchronizer.js +++ b/src/extras/synchronizer.js @@ -107,7 +107,7 @@ Dygraph.synchronize = function(/* dygraphs..., opts */) { if (!prevCallbacks[j]) { prevCallbacks[j] = {}; } - for (var k in callBackTypes) { + for (var k = callBackTypes.length - 1; k >= 0; k--) { prevCallbacks[j][callBackTypes[k]] = dygraphs[j].getFunctionOption(callBackTypes[k]); } }