From 0949d3e5cd678e82717f01d6696e7e8abe763be2 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Wed, 19 Aug 2009 03:48:57 +0000 Subject: [PATCH] fix issue 3 and update combined JS --- dygraph-combined.js | 2 +- dygraph.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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_(); }); }; /** -- 2.7.4