Skip to content

Commit

Permalink
Remove duplicated layout/range selector initialization code
Browse files Browse the repository at this point in the history
  • Loading branch information
danvk committed Dec 19, 2011
1 parent 5061b42 commit 9fa43d8
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions dygraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -814,14 +814,6 @@ Dygraph.prototype.createInterface_ = function() {
this.rangeSelector_.addToGraph(this.graphDiv, this.layout_);
}

// Create the grapher
this.layout_ = new DygraphLayout(this);

if (this.rangeSelector_) {
// This needs to happen after the graph canvases are added to the div and the layout object is created.
this.rangeSelector_.addToGraph(this.graphDiv, this.layout_);
}

var dygraph = this;
Dygraph.addEvent(this.mouseEventElement_, 'mousemove', function(e) {
dygraph.mouseMove_(e);
Expand Down

0 comments on commit 9fa43d8

Please sign in to comment.