More PC8080 structural fixes

This commit is contained in:
Jeff Parsons 2016-04-20 13:37:37 -07:00
commit 8971097b3b
9 changed files with 83 additions and 49 deletions

View file

@ -459,7 +459,9 @@ Component.getComponentByID = function(id, idRelated)
return Component.components[i];
}
}
Component.log("Component ID '" + id + "' not found", "warning");
if (Component.components.length) {
Component.log("Component ID '" + id + "' not found", "warning");
}
}
return null;
};
@ -582,7 +584,7 @@ Component.bindComponentControls = function(component, element, sAppClass)
parms = Component.getComponentParms(control);
if (parms && parms['binding']) {
component.setBinding(parms['type'], parms['binding'], control, parms['value']);
} else {
} else if (!parms || parms['type'] != "description") {
Component.log("Component '" + component.toString() + "' missing binding" + (parms? " for " + parms['type'] : ""), "warning");
}
iClass = aClasses.length;