projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
uncover a bug in a test case
[dygraphs.git]
/
dygraph.js
diff --git
a/dygraph.js
b/dygraph.js
index
26a3812
..
1012d76
100644
(file)
--- a/
dygraph.js
+++ b/
dygraph.js
@@
-928,10
+928,9
@@
Dygraph.prototype.mouseMove_ = function(event) {
}
if (this.attr_("highlightCallback")) {
}
if (this.attr_("highlightCallback")) {
- var px = this.last
HighlightCallbackX
;
+ var px = this.last
x_
;
if (px !== null && lastx != px) {
// only fire if the selected point has changed.
if (px !== null && lastx != px) {
// only fire if the selected point has changed.
- this.lastHighlightCallbackX = lastx;
this.attr_("highlightCallback")(event, lastx, this.selPoints_);
}
}
this.attr_("highlightCallback")(event, lastx, this.selPoints_);
}
}
@@
-1040,6
+1039,10
@@
Dygraph.prototype.setSelection = function(row) {
* @private
*/
Dygraph.prototype.mouseOut_ = function(event) {
* @private
*/
Dygraph.prototype.mouseOut_ = function(event) {
+ if (this.attr_("unhighlightCallback")) {
+ this.attr_("unhighlightCallback")(event);
+ }
+
if (this.attr_("hideOverlayOnMouseOut")) {
this.clearSelection();
}
if (this.attr_("hideOverlayOnMouseOut")) {
this.clearSelection();
}