mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 14:10:14 -05:00
Fix issue where exceptions in onFrame handlers block future animations.
This commit is contained in:
parent
5f7dbfb1ab
commit
0e5483c03f
1 changed files with 1 additions and 1 deletions
|
@ -173,7 +173,6 @@ var View = Base.extend(Callback, /** @lends View# */{
|
||||||
_requestFrame: function() {
|
_requestFrame: function() {
|
||||||
/*#*/ if (options.environment == 'browser') {
|
/*#*/ if (options.environment == 'browser') {
|
||||||
var that = this;
|
var that = this;
|
||||||
this._requested = true;
|
|
||||||
DomEvent.requestAnimationFrame(function() {
|
DomEvent.requestAnimationFrame(function() {
|
||||||
that._requested = false;
|
that._requested = false;
|
||||||
// Do we need to stop due to a call to the frame event's uninstall()
|
// Do we need to stop due to a call to the frame event's uninstall()
|
||||||
|
@ -183,6 +182,7 @@ var View = Base.extend(Callback, /** @lends View# */{
|
||||||
that._requestFrame();
|
that._requestFrame();
|
||||||
that._handleFrame();
|
that._handleFrame();
|
||||||
}, this._element);
|
}, this._element);
|
||||||
|
this._requested = true;
|
||||||
/*#*/ } // options.environment == 'browser'
|
/*#*/ } // options.environment == 'browser'
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue