fix issue 3 and update combined JS
authorDan Vanderkam <danvdk@gmail.com>
Wed, 19 Aug 2009 03:48:57 +0000 (03:48 +0000)
committerDan Vanderkam <danvdk@gmail.com>
Wed, 19 Aug 2009 03:48:57 +0000 (03:48 +0000)
dygraph-combined.js
dygraph.js

index d0c243a..ca0a3ee 100644 (file)
@@ -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_(); });
 };
 
 /**
index 6369f11..4f08596 100644 (file)
@@ -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_(); });
 };
 
 /**