From: Dan Vanderkam Date: Wed, 19 Aug 2009 03:48:57 +0000 (+0000) Subject: fix issue 3 and update combined JS X-Git-Tag: v1.0.0~920 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=0949d3e5cd678e82717f01d6696e7e8abe763be2;p=dygraphs.git fix issue 3 and update combined JS --- diff --git a/dygraph-combined.js b/dygraph-combined.js index d0c243a..ca0a3ee 100644 --- a/dygraph-combined.js +++ b/dygraph-combined.js @@ -9456,7 +9456,7 @@ DateGraph.prototype.__init__ = function(div, file, labels, attrs) { this.createRollInterface_(); this.createDragInterface_(); - MochiKit.DOM.addLoadEvent(this.start_()); + connect(window, 'onload', this, function(e) { this.start_(); }); }; /** diff --git a/dygraph.js b/dygraph.js index 6369f11..4f08596 100644 --- a/dygraph.js +++ b/dygraph.js @@ -144,7 +144,7 @@ DateGraph.prototype.__init__ = function(div, file, labels, attrs) { this.createRollInterface_(); this.createDragInterface_(); - MochiKit.DOM.addLoadEvent(this.start_()); + connect(window, 'onload', this, function(e) { this.start_(); }); }; /**