Fix bug 329 which accumulates clipping rectangles on subsequent draws.
[dygraphs.git] / dygraph.js
index a02d919..f198cff 100644 (file)
@@ -2200,6 +2200,8 @@ Dygraph.prototype.predraw_ = function() {
   // If the data or options have changed, then we'd better redraw.
   this.drawGraph_();
 
+  this.plotter_.onDoneDrawing();
+
   // This is used to determine whether to do various animations.
   var end = new Date();
   this.drawingTimeMs_ = (end - start);