js/foundation/system/system.js in rsence-pre-2.1.8.1 vs js/foundation/system/system.js in rsence-pre-2.2.0.0
- 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