From: Dan Vanderkam Date: Mon, 14 Dec 2009 09:00:39 +0000 (-0800) Subject: update status div X-Git-Tag: v1.0.0~787 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=b16e636940e6566cc8176c7eb4ed90fba7d118c9;p=dygraphs.git update status div --- diff --git a/dygraph.js b/dygraph.js index 8c3bc59..74b76e4 100644 --- a/dygraph.js +++ b/dygraph.js @@ -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";