From a19f2020fbf9df2d6c0c994fbf35ccf155232731 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Mon, 16 May 2011 13:06:26 +0100 Subject: [PATCH] Use that instead of this, since we're in an unbound callback. --- src/document/DocumentView.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/document/DocumentView.js b/src/document/DocumentView.js index d28c558e..cf65dd69 100644 --- a/src/document/DocumentView.js +++ b/src/document/DocumentView.js @@ -50,10 +50,10 @@ var DocumentView = this.DocumentView = Base.extend({ DomElement.getWindowSize().subtract(offset)); // If there's a _onFrameCallback, call it staight away, // but without requesting another animation frame. - if (this._onFrameCallback) { - this._onFrameCallback(0, true); + if (that._onFrameCallback) { + that._onFrameCallback(0, true); } else { - this.draw(); + that.draw(); } } });