From 0e5483c03f94a4c21fc5accd1a6f1ce63825efd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Fri, 29 Nov 2013 18:49:51 +0100 Subject: [PATCH] Fix issue where exceptions in onFrame handlers block future animations. --- src/ui/View.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/View.js b/src/ui/View.js index 4167658f..0a945abd 100644 --- a/src/ui/View.js +++ b/src/ui/View.js @@ -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' },