Revert "To avoid the rising count of useless resizes : we remove the handler if it...
[dygraphs.git] / dygraph.js
index 71bacbf..1773c35 100644 (file)
@@ -966,12 +966,6 @@ Dygraph.prototype.createInterface_ = function() {
   };
   this.addEvent(this.mouseEventElement_, 'mouseout', this.mouseOutHandler);
 
-  if (this.resizeHandler) {
-    // remove handler because it's already setup.
-    Dygraph.removeEvent(window, 'resize', this.resizeHandler);
-  }
-
   this.resizeHandler = function(e) {
     dygraph.resize();
   };