projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a guide to contributing
[dygraphs.git]
/
plugins
/
annotations.js
diff --git
a/plugins/annotations.js
b/plugins/annotations.js
index
04ebb8f
..
8576104
100644
(file)
--- a/
plugins/annotations.js
+++ b/
plugins/annotations.js
@@
-143,13
+143,13
@@
annotations.prototype.didDrawChart = function(e) {
div.style.borderColor = g.colorsMap_[p.name];
a.div = div;
div.style.borderColor = g.colorsMap_[p.name];
a.div = div;
- g.addEvent(div, 'click',
+ g.add
AndTrack
Event(div, 'click',
bindEvt('clickHandler', 'annotationClickHandler', p, this));
bindEvt('clickHandler', 'annotationClickHandler', p, this));
- g.addEvent(div, 'mouseover',
+ g.add
AndTrack
Event(div, 'mouseover',
bindEvt('mouseOverHandler', 'annotationMouseOverHandler', p, this));
bindEvt('mouseOverHandler', 'annotationMouseOverHandler', p, this));
- g.addEvent(div, 'mouseout',
+ g.add
AndTrack
Event(div, 'mouseout',
bindEvt('mouseOutHandler', 'annotationMouseOutHandler', p, this));
bindEvt('mouseOutHandler', 'annotationMouseOutHandler', p, this));
- g.addEvent(div, 'dblclick',
+ g.add
AndTrack
Event(div, 'dblclick',
bindEvt('dblClickHandler', 'annotationDblClickHandler', p, this));
containerDiv.appendChild(div);
bindEvt('dblClickHandler', 'annotationDblClickHandler', p, this));
containerDiv.appendChild(div);