projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Follow-on to pull request 237, closurifying some code.
[dygraphs.git]
/
dygraph.js
diff --git
a/dygraph.js
b/dygraph.js
index
6e4d2ce
..
f11fa74
100644
(file)
--- a/
dygraph.js
+++ b/
dygraph.js
@@
-1019,8
+1019,8
@@
Dygraph.prototype.createInterface_ = function() {
// 2. e.relatedTarget is outside the chart
var target = e.target || e.fromElement;
var relatedTarget = e.relatedTarget || e.toElement;
// 2. e.relatedTarget is outside the chart
var target = e.target || e.fromElement;
var relatedTarget = e.relatedTarget || e.toElement;
- if (Dygraph.is
Element
ContainedBy(target, dygraph.graphDiv) &&
- !Dygraph.is
Element
ContainedBy(relatedTarget, dygraph.graphDiv)) {
+ if (Dygraph.is
Node
ContainedBy(target, dygraph.graphDiv) &&
+ !Dygraph.is
Node
ContainedBy(relatedTarget, dygraph.graphDiv)) {
dygraph.mouseOut_(e);
}
};
dygraph.mouseOut_(e);
}
};
@@
-1988,7
+1988,7
@@
Dygraph.prototype.updateSelection_ = function(opt_animFraction) {
ctx.strokeStyle = color;
ctx.fillStyle = color;
callback(this.g, pt.name, ctx, canvasx, pt.canvasy,
ctx.strokeStyle = color;
ctx.fillStyle = color;
callback(this.g, pt.name, ctx, canvasx, pt.canvasy,
- color, circleSize,pt.idx);
+ color, circleSize,
pt.idx);
}
ctx.restore();
}
ctx.restore();