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! :)

This commit is contained in:
Adil Allawi 2011-12-15 11:32:58 +00:00
parent c93e7c9c87
commit 5bd080fd05

View File

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