X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph.js;h=f0ced901bc8b9cbe26eeb60b41ef56fce6815421;hb=088be40ba438baaddbbd7135fd20c33135fcaca3;hp=092f511a92186bb7945578b22bdf87c168617b10;hpb=0d216a600817f49892b92eefe48077197509ea6b;p=dygraphs.git diff --git a/dygraph.js b/dygraph.js index 092f511..f0ced90 100644 --- 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_(); }