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

@ -71,10 +71,7 @@ Panel.prototype.setBinding = function(sHTMLType, sBinding, control)
if (this.cpu && this.cpu.setBinding(sHTMLType, sBinding, control)) return true;
if (this.kbd && this.kbd.setBinding(sHTMLType, sBinding, control)) return true;
if (DEBUGGER && this.dbg && this.dbg.setBinding(sHTMLType, sBinding, control)) return true;
/*
* TODO: Determine how to declare this superclass method in order to avoid a type warning
*/
return Component.prototype.setBinding.call(this, sHTMLType, sBinding, control);
return this.parent.setBinding.call(this, sHTMLType, sBinding, control);
};
/**