From: Dan Vanderkam Date: Mon, 17 Sep 2012 20:45:20 +0000 (-0400) Subject: fix for issue 380 from adilh X-Git-Tag: v1.0.0~177 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=681a215ed5cd859a4dbd43fc24092a5608a6f5e4;p=dygraphs.git fix for issue 380 from adilh --- diff --git a/dygraph.js b/dygraph.js index 0fc48ce..621ea32 100644 --- a/dygraph.js +++ b/dygraph.js @@ -1536,7 +1536,8 @@ Dygraph.prototype.doUnzoom_ = function() { newValueRanges = []; for (i = 0; i < this.axes_.length; i++) { var axis = this.axes_[i]; - newValueRanges.push(axis.valueRange !== null ? + newValueRanges.push((axis.valueRange !== null && + axis.valueRange !== undefined) ? axis.valueRange : axis.extremeRange); } }