js/foundation/application/application.js in rsence-2.1.3 vs js/foundation/application/application.js in rsence-2.1.4
- old
+ new
@@ -185,13 +185,19 @@
/** Gets called by +HSystem+. It makes +onIdle+ extensions more failure
* resistant. Do not extend.
**/
_startIdle: function(){
- HSystem.busyApps[ this.appId ] = true;
- this.onIdle();
- this._pollViews();
- HSystem.busyApps[ this.appId ] = false;
+ var _this = this;
+ HSystem.busyApps[ _this.appId ] = true;
+ this._busyTimer = setTimeout(
+ function(){
+ _this.onIdle();
+ _this._pollViews();
+ HSystem.busyApps[ _this.appId ] = false;
+ },
+ 10
+ );
},
/** = Description
* The receiver of the +onIdle+ "poll event". The app priority defines the interval.
*