From d63e67995e52dde3b735aaa0b426d4dfc2337126 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Thu, 21 Oct 2010 21:19:23 -0400 Subject: [PATCH] two bug fixes --- dygraph.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dygraph.js b/dygraph.js index a73a8e4..ae27c7c 100644 --- a/dygraph.js +++ b/dygraph.js @@ -318,7 +318,7 @@ Dygraph.prototype.xAxisRange = function() { * Returns a two-element array: [bottom, top]. */ Dygraph.prototype.yAxisRange = function(idx) { - if (typeof(idx) == "undefined") idx == 0; + if (typeof(idx) == "undefined") idx = 0; if (idx < 0 || idx >= this.axes_.length) return null; return [ this.axes_[idx].computedValueRange[0], this.axes_[idx].computedValueRange[1] ]; @@ -897,8 +897,8 @@ Dygraph.prototype.createDragInterface_ = function() { draggingDate = null; dateRange = null; for (var i = 0; i < self.axes_.length; i++) { - delete this.axes_[i].draggingValue; - delete this.axes_[i].dragValueRange; + delete self.axes_[i].draggingValue; + delete self.axes_[i].dragValueRange; } } }); -- 2.7.4