fix issue 3 and update combined JS
[dygraphs.git] / dygraph.js
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_(); });
 };
 
 /**