1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-27 13:56:24 +00:00

Fix switch value method, make app global

This commit is contained in:
Scott Lahteine 2015-02-27 21:08:09 -08:00
parent 8d5839151b
commit 838a22de64

View File

@ -128,7 +128,7 @@ $.fn.extend({
});
// The app is a singleton
var configuratorApp = (function(){
window.configuratorApp = (function(){
// private variables and functions go here
var self,
@ -717,7 +717,7 @@ var configuratorApp = (function(){
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
configuratorApp.init();
window.configuratorApp.init();
});