X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fsynchronize.html;h=dd4cfb72fde50194b6591e9589744780d43d947a;hb=fb369f35fe90a793a8f41e9cff251eae23e782d8;hp=a26c4c0e8e8c4ecd528a686f7f4c37a6e4bcbfeb;hpb=02f49d0b56e9bfafc4d0964e09d1e0b815aa6854;p=dygraphs.git diff --git a/tests/synchronize.html b/tests/synchronize.html index a26c4c0..dd4cfb7 100644 --- a/tests/synchronize.html +++ b/tests/synchronize.html @@ -4,7 +4,8 @@ - + + @@ -18,7 +19,7 @@
Zooming and panning on any of the charts will zoom and pan all the others.
- + @@ -35,10 +36,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 +50,6 @@ ) ); } - - initialized = true;