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:
parent
c93e7c9c87
commit
5bd080fd05
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue