fix #2432 setPolling(false) doesn't turn off polling
This commit is contained in:
parent
04f4292fbc
commit
e610365e67
1 changed files with 3 additions and 3 deletions
|
|
@ -120,9 +120,9 @@ var FontMetrics = exports.FontMetrics = function(parentEl, interval) {
|
|||
this.setPolling = function(val) {
|
||||
if (val) {
|
||||
this.$pollSizeChanges();
|
||||
} else {
|
||||
if (this.$pollSizeChangesTimer)
|
||||
this.$pollSizeChangesTimer;
|
||||
} else if (this.$pollSizeChangesTimer) {
|
||||
clearInterval(this.$pollSizeChangesTimer);
|
||||
this.$pollSizeChangesTimer = 0;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue