Use restore_count variable instead of non-existing length attribute, maybe helps with framework loading.

This commit is contained in:
Nathan Gray 2015-05-25 17:05:06 +00:00
parent aa724afc03
commit b1b8206d05

View File

@ -114,7 +114,7 @@ var fw_base = Class.extend({
} }
//If this entry is the default entry, show it using the click callback //If this entry is the default entry, show it using the click callback
if (app.isDefault && (app.isDefault === true) && (restore.length == 0)) if (app.isDefault && (app.isDefault === true) && (restore_count === 0))
{ {
defaultApp = this.appData; defaultApp = this.appData;
} }
@ -137,7 +137,7 @@ var fw_base = Class.extend({
} }
// else display the default application // else display the default application
if (defaultApp && restore_count == 0) if (defaultApp && restore_count === 0)
{ {
restore[defaultApp.appName] = mkRestoreEntry(defaultApp, 0, null, 1); restore[defaultApp.appName] = mkRestoreEntry(defaultApp, 0, null, 1);
} }