update status div
authorDan Vanderkam <danvdk@gmail.com>
Mon, 14 Dec 2009 09:00:39 +0000 (01:00 -0800)
committerDan Vanderkam <danvdk@gmail.com>
Mon, 14 Dec 2009 09:00:39 +0000 (01:00 -0800)
dygraph.js

index 8c3bc59..74b76e4 100644 (file)
@@ -1760,7 +1760,10 @@ Dygraph.prototype.resize = function(width, height) {
     width = height = null;
   }
 
+  // TODO(danvk): there should be a clear() method.
   this.maindiv_.innerHTML = "";
+  this.attrs_.labelsDiv = null;
+
   if (width) {
     this.maindiv_.style.width = width + "px";
     this.maindiv_.style.height = height + "px";