Support for canvas elements in XML machine files

(laying the groundwork for a new graphical control panel)
This commit is contained in:
Jeff Parsons 2015-01-22 16:16:44 -08:00 committed by jeffpar
commit 792604d5e3
11 changed files with 87 additions and 111 deletions

View file

@ -84,9 +84,7 @@ function Component(type, parms, constructor, bitsMessage)
{
this.type = type;
if (!parms) {
parms = {'id': "", 'name': ""};
}
if (!parms) parms = {'id': "", 'name': ""};
this.id = parms['id'];
this.name = parms['name'];
@ -200,6 +198,7 @@ Component.subclass = function(superclass, subclass, methods, statics)
{
subclass.prototype = Component.inherit(superclass.prototype);
subclass.prototype.constructor = subclass;
subclass.prototype.parent = superclass.prototype;
if (methods) {
Component.extend(subclass.prototype, methods);
}
@ -583,6 +582,7 @@ Component.getElementsByClass = function(element, sClass, sObjClass)
Component.prototype = {
constructor: Component,
parent: null,
/**
* toString()
*