1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

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);
},