X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fsynchronize.html;h=94b8e5130f7c4472a542321b2b894d69d893c152;hb=fe0b7c03f0ff3ba4f852a9781ed592be6911d4df;hp=a26c4c0e8e8c4ecd528a686f7f4c37a6e4bcbfeb;hpb=02f49d0b56e9bfafc4d0964e09d1e0b815aa6854;p=dygraphs.git diff --git a/tests/synchronize.html b/tests/synchronize.html index a26c4c0..94b8e51 100644 --- a/tests/synchronize.html +++ b/tests/synchronize.html @@ -18,7 +18,7 @@

Zooming and panning on any of the charts will zoom and pan all the others.

- +
@@ -35,10 +35,10 @@ NoisyData, { rollPeriod: 7, errorBars: true, - drawCallback: function(me) { - if (blockRedraw || !initialized) return; + drawCallback: function(me, initial) { + if (blockRedraw || initial) return; blockRedraw = true; - var range = me.xAxisRange(); + var range = me.xAxisRange(); for (var j = 0; j < 4; j++) { if (gs[j] == me) continue; gs[j].updateOptions( { dateWindow: range } ); @@ -49,8 +49,6 @@ ) ); } - - initialized = true;