X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Fzoom.html;h=f53eab08ecb09942ca2c27db39df44c88c08bd7e;hb=00eebc92ec7d1846599bf233dbc63b9ea3ac3095;hp=286e1b30f4dfbc4d60a1f3f47f4c65e52c93ac46;hpb=d33de6cabb99ea446961ee20da465e5974ebbdf9;p=dygraphs.git diff --git a/tests/zoom.html b/tests/zoom.html index 286e1b3..f53eab0 100644 --- a/tests/zoom.html +++ b/tests/zoom.html @@ -1,15 +1,10 @@ - + zoom - - - - - + + @@ -52,13 +47,13 @@ document.getElementById("div_g"), NoisyData, { errorBars: true, - zoomCallback : function(minDate, maxDate, yRange) { + zoomCallback: function(minDate, maxDate, yRange) { showDimensions(minDate, maxDate, yRange); }, - drawCallback: function(me, initial) { - document.getElementById("zoomed").innerHTML = "" + me.isZoomed(); - document.getElementById("zoomedX").innerHTML = "" + me.isZoomed("x"); - document.getElementById("zoomedY").innerHTML = "" + me.isZoomed("y"); + drawCallback: function() { + document.getElementById("zoomed").innerHTML = "" + this.isZoomed(); + document.getElementById("zoomedX").innerHTML = "" + this.isZoomed("x"); + document.getElementById("zoomedY").innerHTML = "" + this.isZoomed("y"); } } );