From 681a215ed5cd859a4dbd43fc24092a5608a6f5e4 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Mon, 17 Sep 2012 16:45:20 -0400 Subject: [PATCH] fix for issue 380 from adilh --- dygraph.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } } -- 2.7.4