From a02a53659ac6e1a81fd1cad0c404104a17cd653b Mon Sep 17 00:00:00 2001 From: Marek Janda Date: Tue, 23 Jun 2015 20:04:11 +0200 Subject: [PATCH] for..in -> normal for loop --- src/extras/synchronizer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); } } -- 2.7.4