projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d56223
)
Need to call createDragInterface_() after plugins are activated in order to allow...
author
Paul Felix
<paul.eric.felix@gmail.com>
Tue, 8 Jan 2013 18:24:08 +0000
(13:24 -0500)
committer
Dan Vanderkam
<danvk@google.com>
Fri, 11 Jan 2013 21:58:19 +0000
(16:58 -0500)
dygraph.js
patch
|
blob
|
blame
|
history
diff --git
a/dygraph.js
b/dygraph.js
index
092f511
..
f0ced90
100644
(file)
--- a/
dygraph.js
+++ b/
dygraph.js
@@
-485,6
+485,8
@@
Dygraph.prototype.__init__ = function(div, file, attrs) {
}
}
+ this.createDragInterface_();
+
this.start_();
};
@@
-963,8
+965,6
@@
Dygraph.prototype.createInterface_ = function() {
};
this.addEvent(this.mouseEventElement_, 'mouseout', this.mouseOutHandler);
- this.createDragInterface_();
-
this.resizeHandler = function(e) {
dygraph.resize();
};
@@
-3395,6
+3395,7
@@
Dygraph.prototype.resize = function(width, height) {
// createInterface_ reset the layout, so we need to do this.
this.layout_.setAnnotations(this.annotations_);
}
+ this.createDragInterface_();
this.predraw_();
}