projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
960eed9
)
To avoid the rising count of useless resizes : we remove the handler if it exists...
author
manufitoussi
<manu.fitoussi@gmail.com>
Fri, 25 Jan 2013 13:23:54 +0000
(14:23 +0100)
committer
manufitoussi
<manu.fitoussi@gmail.com>
Fri, 25 Jan 2013 13:23:54 +0000
(14:23 +0100)
dygraph.js
patch
|
blob
|
blame
|
history
diff --git
a/dygraph.js
b/dygraph.js
index
ecbbca7
..
ae089d0
100644
(file)
--- a/
dygraph.js
+++ b/
dygraph.js
@@
-966,6
+966,12
@@
Dygraph.prototype.createInterface_ = function() {
};
this.addEvent(this.mouseEventElement_, 'mouseout', this.mouseOutHandler);
+
+ if (this.resizeHandler) {
+ // remove handler because it's already setup.
+ Dygraph.removeEvent(window, 'resize', this.resizeHandler);
+ }
+
this.resizeHandler = function(e) {
dygraph.resize();
};