Skip to content

Commit

Permalink
fix #2432 setPolling(false) doesn't turn off polling
Browse files Browse the repository at this point in the history
  • Loading branch information
nightwing committed Apr 19, 2015
1 parent 04f4292 commit e610365
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/ace/layer/font_metrics.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
};

Expand Down

0 comments on commit e610365

Please sign in to comment.