if (event.altKey || event.shiftKey) {
return;
}
- // TODO(konigsberg): replace g.doUnzoom()_ with something that is
- // friendlier to public use.
- g.doUnzoom_();
+ g.restoreZoom();
}
};
var zoomHandleStatus = self.getZoomHandleStatus_();
self.isChangingRange_ = true;
if (!zoomHandleStatus.isZoomed) {
- self.dygraph_.doUnzoom_();
+ self.dygraph_.restoreZoom();
} else {
var xDataWindow = toXDataWindow(zoomHandleStatus);
self.dygraph_.doZoomXDates_(xDataWindow[0], xDataWindow[1]);
/**
* Reset the zoom to the original view coordinates. This is the same as
* double-clicking on the graph.
- *
- * @private
*/
-Dygraph.prototype.doUnzoom_ = function() {
+Dygraph.prototype.restoreZoom = function() {
var dirty = false, dirtyX = false, dirtyY = false;
if (this.dateWindow_ !== null) {
dirty = true;