Fix switch value method, make app global
This commit is contained in:
parent
8d5839151b
commit
838a22de64
1 changed files with 3 additions and 3 deletions
|
@ -128,7 +128,7 @@ $.fn.extend({
|
||||||
});
|
});
|
||||||
|
|
||||||
// The app is a singleton
|
// The app is a singleton
|
||||||
var configuratorApp = (function(){
|
window.configuratorApp = (function(){
|
||||||
|
|
||||||
// private variables and functions go here
|
// private variables and functions go here
|
||||||
var self,
|
var self,
|
||||||
|
@ -717,7 +717,7 @@ var configuratorApp = (function(){
|
||||||
|
|
||||||
this.log(result,2);
|
this.log(result,2);
|
||||||
|
|
||||||
return inf.type == 'switch' ? result[inf.val_i] != '//' : result[inf.val_i];
|
return (inf.type == 'switch') ? (result[inf.val_i] === undefined || result[inf.val_i].trim() != '//') : result[inf.val_i];
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1106,6 +1106,6 @@ var configuratorApp = (function(){
|
||||||
})();
|
})();
|
||||||
|
|
||||||
// Typically the app would be in its own file, but this would be here
|
// Typically the app would be in its own file, but this would be here
|
||||||
configuratorApp.init();
|
window.configuratorApp.init();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Reference in a new issue