]> git.parisson.com Git - pdf.js.git/commitdiff
oops, interval was not clearing because 'this' is not the same 'this' inside an inter...
authorAdil Allawi <adil@diwan.com>
Thu, 15 Dec 2011 11:32:58 +0000 (11:32 +0000)
committerAdil Allawi <adil@diwan.com>
Thu, 15 Dec 2011 11:32:58 +0000 (11:32 +0000)
src/canvas.js

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