X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph.js;h=4f08596853e6b740fa7fc4ac0237c3fbf6782d56;hb=0949d3e5cd678e82717f01d6696e7e8abe763be2;hp=6369f1143ee7a362dea4347724aae6105381ddd4;hpb=6a1aa64f6d22473e0357ad1cd7bd93259d899a69;p=dygraphs.git 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_(); }); }; /**