js/foundation/system/system.js in rsence-2.1.9 vs js/foundation/system/system.js in rsence-2.1.10
- old
+ new
@@ -129,12 +129,13 @@
*
**/
addApp: function(_app, _priority){
var _appId;
if(this.freeAppIds.length !== 0){
- _appId = this.freeAppIds.unshift();
+ _appId = this.freeAppIds.shift();
this.apps[_appId] = _app;
- } else {
+ }
+ else {
this.apps.push(_app);
_appId = this.apps.length-1;
}
// sets self as parent