mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Use that instead of this, since we're in an unbound callback.
This commit is contained in:
parent
1747118ed4
commit
a19f2020fb
1 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue