Fix issue where exceptions in onFrame handlers block future animations.

This commit is contained in:
Jürg Lehni 2013-11-29 18:49:51 +01:00
parent 5f7dbfb1ab
commit 0e5483c03f

View file

@ -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'
}, },