Browse Source

oops, interval was not clearing because 'this' is not the same 'this' inside an interval. Should use local variable 'self' instead. Reviewers you should have spotted this! :)

Adil Allawi 14 years ago
parent
commit
5bd080fd05
  1. 2
      src/canvas.js

2
src/canvas.js

@ -361,7 +361,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
textLayerQueue.splice(i, 1); textLayerQueue.splice(i, 1);
} }
if (textLayerQueue.length == 0) if (textLayerQueue.length == 0)
clearInterval(this.textLayerTimer); clearInterval(self.textLayerTimer);
}, 1); }, 1);
}, },

Loading…
Cancel
Save