Simplify subclassing

This commit is contained in:
Jeff Parsons 2015-04-01 17:20:26 -07:00 committed by jeffpar
commit a2b06b7626
28 changed files with 579 additions and 607 deletions

View file

@ -158,7 +158,7 @@ function Mouse(parmsMouse)
* synchronize with the mouse.
*/
Component.subclass(Component, Mouse);
Component.subclass(Mouse);
Mouse.ID_SERIAL = 0x4D;
@ -267,9 +267,10 @@ Mouse.prototype.powerUp = function(data, fRepower)
*
* @this {Mouse}
* @param {boolean} fSave
* @return {Object|boolean}
* @param {boolean} [fShutdown]
* @return {Object|boolean} component state if fSave; otherwise, true if successful, false if failure
*/
Mouse.prototype.powerDown = function(fSave)
Mouse.prototype.powerDown = function(fSave, fShutdown)
{
return fSave && this.save? this.save() : true;
};