projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0826981
)
isZoomed broken because of == -> === comparison.
author
Robert Konigsberg
<konigsberg@google.com>
Wed, 28 Dec 2011 23:35:32 +0000
(18:35 -0500)
committer
Robert Konigsberg
<konigsberg@google.com>
Wed, 28 Dec 2011 23:35:32 +0000
(18:35 -0500)
dygraph.js
patch
|
blob
|
blame
|
history
diff --git
a/dygraph.js
b/dygraph.js
index
74d6ce5
..
ff9fbfa
100644
(file)
--- a/
dygraph.js
+++ b/
dygraph.js
@@
-414,10
+414,10
@@
Dygraph.prototype.__init__ = function(div, file, attrs) {
* option is also specified).
*/
Dygraph.prototype.isZoomed = function(axis) {
- if (axis ==
=
null) return this.zoomed_x_ || this.zoomed_y_;
+ if (axis == null) return this.zoomed_x_ || this.zoomed_y_;
if (axis === 'x') return this.zoomed_x_;
if (axis === 'y') return this.zoomed_y_;
- throw "axis parameter
to Dygraph.isZoomed must be missing
, 'x' or 'y'.";
+ throw "axis parameter
is [" + axis + "] must be null
, 'x' or 'y'.";
};
/**