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

@ -98,7 +98,7 @@ C1PComputer.sAppName = APPNAME || "C1Pjs";
C1PComputer.sAppVer = APPVERSION;
C1PComputer.sCopyright = "Copyright © 2012-2015 Jeff Parsons <Jeff@pcjs.org>";
Component.subclass(Component, C1PComputer);
Component.subclass(C1PComputer);
/**
* @this {C1PComputer}

View file

@ -469,7 +469,7 @@ function C1PCPU(parmsCPU)
];
}
Component.subclass(Component, C1PCPU);
Component.subclass(C1PCPU);
/**
* @this {C1PCPU}

View file

@ -484,7 +484,7 @@ function C1PDebugger(parmsDbg)
if (DEBUGGER) {
Component.subclass(Component, C1PDebugger);
Component.subclass(C1PDebugger);
/**
* @this {C1PDebugger}

View file

@ -433,7 +433,7 @@ function C1PDiskController(parmsDC)
this.reset(true);
}
Component.subclass(Component, C1PDiskController);
Component.subclass(C1PDiskController);
/**
* @this {C1PDiskController}

View file

@ -295,7 +295,7 @@ function C1PKeyboard(parmsKbd)
this.reset();
}
Component.subclass(Component, C1PKeyboard);
Component.subclass(C1PKeyboard);
/**
* @this {C1PKeyboard}

View file

@ -47,7 +47,7 @@ function C1PPanel(parmsPanel)
this.aFlags.fPowered = false;
}
Component.subclass(Component, C1PPanel);
Component.subclass(C1PPanel);
/**
* The Panel doesn't have any bindings of its own; it passes along all binding requests to

View file

@ -51,7 +51,7 @@ function C1PRAM(parmsRAM)
Component.call(this, "C1PRAM", parmsRAM);
}
Component.subclass(Component, C1PRAM);
Component.subclass(C1PRAM);
/**
* @this {C1PRAM}

View file

@ -50,6 +50,7 @@
function C1PROM(parmsROM)
{
Component.call(this, "C1PROM", parmsROM);
this.abMem = null;
this.abImage = null;
this.cbROM = parmsROM['size'];
@ -70,7 +71,7 @@ function C1PROM(parmsROM)
}
}
Component.subclass(Component, C1PROM);
Component.subclass(C1PROM);
/**
* @this {C1PROM}

View file

@ -53,7 +53,7 @@ function C1PSerialPort(parmsSerial)
this.reset();
}
Component.subclass(Component, C1PSerialPort);
Component.subclass(C1PSerialPort);
/**
* @this {C1PSerialPort}

View file

@ -152,7 +152,7 @@ function C1PVideo(parmsVideo, eCanvas, context, imgChars)
this.addrVideoPort = 0xDE00; // WARNING: Hard-coded port address -JP
}
Component.subclass(Component, C1PVideo);
Component.subclass(C1PVideo);
/**
* @this {C1PVideo}