projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70a50f9
)
fix issue 124
author
Dan Vanderkam
<dan@dygraphs.com>
Mon, 21 Feb 2011 15:31:23 +0000
(10:31 -0500)
committer
Dan Vanderkam
<dan@dygraphs.com>
Mon, 21 Feb 2011 15:31:23 +0000
(10:31 -0500)
dygraph.js
patch
|
blob
|
blame
|
history
diff --git
a/dygraph.js
b/dygraph.js
index
4a1cef2
..
657a405
100644
(file)
--- a/
dygraph.js
+++ b/
dygraph.js
@@
-1401,6
+1401,9
@@
Dygraph.prototype.mouseMove_ = function(event) {
var canvasx = Dygraph.pageX(event) - Dygraph.findPosX(this.mouseEventElement_);
var points = this.layout_.points;
+ // This prevents JS errors when mousing over the canvas before data loads.
+ if (typeof(points) == 'undefined') return;
+
var lastx = -1;
var lasty = -1;