Use that instead of this, since we're in an unbound callback.

This commit is contained in:
Jürg Lehni 2011-05-16 13:06:26 +01:00
parent 1747118ed4
commit a19f2020fb

View file

@ -50,10 +50,10 @@ var DocumentView = this.DocumentView = Base.extend({
DomElement.getWindowSize().subtract(offset)); DomElement.getWindowSize().subtract(offset));
// If there's a _onFrameCallback, call it staight away, // If there's a _onFrameCallback, call it staight away,
// but without requesting another animation frame. // but without requesting another animation frame.
if (this._onFrameCallback) { if (that._onFrameCallback) {
this._onFrameCallback(0, true); that._onFrameCallback(0, true);
} else { } else {
this.draw(); that.draw();
} }
} }
}); });