projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5061b42
)
Remove duplicated layout/range selector initialization code
author
Dan Vanderkam
<danvk@google.com>
Mon, 19 Dec 2011 20:53:57 +0000
(15:53 -0500)
committer
Dan Vanderkam
<danvk@google.com>
Mon, 19 Dec 2011 20:53:57 +0000
(15:53 -0500)
dygraph.js
patch
|
blob
|
blame
|
history
diff --git
a/dygraph.js
b/dygraph.js
index
9283a18
..
d9997e9
100644
(file)
--- a/
dygraph.js
+++ b/
dygraph.js
@@
-814,14
+814,6
@@
Dygraph.prototype.createInterface_ = function() {
this.rangeSelector_.addToGraph(this.graphDiv, this.layout_);
}
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);
var dygraph = this;
Dygraph.addEvent(this.mouseEventElement_, 'mousemove', function(e) {
dygraph.mouseMove_(e);