[fix] Wrong undefined type check.

This commit is contained in:
opi 2014-06-10 17:12:43 +02:00
parent dde8755128
commit d4a3e98fb3

View file

@ -817,14 +817,14 @@ app = Sammy('#main', function (sam) {
}
// Multilingual description
appData.manifest.arguments.install[k].label = (typeof appData.manifest.arguments.install[k].ask[y18n.locale] !== 'indefined') ?
appData.manifest.arguments.install[k].label = (typeof appData.manifest.arguments.install[k].ask[y18n.locale] !== 'undefined') ?
appData.manifest.arguments.install[k].ask[y18n.locale] :
appData.manifest.arguments.install[k].ask['en']
;
});
// Multilingual description
appData.description = (typeof appData.manifest.description[y18n.locale] !== 'indefined') ?
appData.description = (typeof appData.manifest.description[y18n.locale] !== 'undefined') ?
appData.manifest.description[y18n.locale] :
appData.manifest.description['en']
;