mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -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));
|
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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue