From: Robert Konigsberg Date: Wed, 9 Jan 2013 01:31:06 +0000 (-0500) Subject: Better name (thanks Paul.) X-Git-Tag: v1.0.0~130^2 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=e4f6e11a1dd2abbfc1321863aa13d9e540d8c253;hp=e70e19abc363a5c8042452a082acc514f970b40c;p=dygraphs.git Better name (thanks Paul.) --- diff --git a/dygraph-interaction-model.js b/dygraph-interaction-model.js index 94dfe3c..9654f28 100644 --- a/dygraph-interaction-model.js +++ b/dygraph-interaction-model.js @@ -574,7 +574,7 @@ Dygraph.Interaction.defaultModel = { if (event.altKey || event.shiftKey) { return; } - g.restoreZoom(); + g.resetZoom(); } }; diff --git a/dygraph-range-selector.js b/dygraph-range-selector.js index 0db095f..0a1ae13 100644 --- a/dygraph-range-selector.js +++ b/dygraph-range-selector.js @@ -278,7 +278,7 @@ DygraphRangeSelector.prototype.initInteraction_ = function() { var zoomHandleStatus = self.getZoomHandleStatus_(); self.isChangingRange_ = true; if (!zoomHandleStatus.isZoomed) { - self.dygraph_.restoreZoom(); + self.dygraph_.resetZoom(); } else { var xDataWindow = toXDataWindow(zoomHandleStatus); self.dygraph_.doZoomXDates_(xDataWindow[0], xDataWindow[1]); diff --git a/dygraph.js b/dygraph.js index a97dafe..c867c66 100644 --- a/dygraph.js +++ b/dygraph.js @@ -1463,7 +1463,7 @@ Dygraph.prototype.doZoomY_ = function(lowY, highY) { * Reset the zoom to the original view coordinates. This is the same as * double-clicking on the graph. */ -Dygraph.prototype.restoreZoom = function() { +Dygraph.prototype.resetZoom = function() { var dirty = false, dirtyX = false, dirtyY = false; if (this.dateWindow_ !== null) { dirty = true;