Need to call createDragInterface_() after plugins are activated in order to allow...
authorPaul Felix <paul.eric.felix@gmail.com>
Tue, 8 Jan 2013 18:24:08 +0000 (13:24 -0500)
committerDan Vanderkam <danvk@google.com>
Fri, 11 Jan 2013 21:58:19 +0000 (16:58 -0500)
dygraph.js

index 092f511..f0ced90 100644 (file)
@@ -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_();
   }