mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -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() {
|
||||
/*#*/ if (options.environment == 'browser') {
|
||||
var that = this;
|
||||
this._requested = true;
|
||||
DomEvent.requestAnimationFrame(function() {
|
||||
that._requested = false;
|
||||
// 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._handleFrame();
|
||||
}, this._element);
|
||||
this._requested = true;
|
||||
/*#*/ } // options.environment == 'browser'
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue