From: Dan Vanderkam Date: Wed, 23 Dec 2009 22:55:27 +0000 (-0500) Subject: fix bug X-Git-Tag: v1.0.0~758 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=f38dec019bc857047ba221046063a1c9b3c7b502;p=dygraphs.git fix bug --- diff --git a/dygraph.js b/dygraph.js index ff70bcb..aa02516 100644 --- a/dygraph.js +++ b/dygraph.js @@ -1884,10 +1884,10 @@ Dygraph.prototype.visibility = function() { // Do lazy-initialization, so that this happens after we know the number of // data series. if (!this.attr_("visibility")) { - this.attr_["visibility"] = []; + this.attrs_["visibility"] = []; } while (this.attr_("visibility").length < this.rawData_[0].length - 1) { - this.attr_("visibility").push(false); + this.attr_("visibility").push(true); } return this.attr_("visibility"); };