Simplify subclassing
This commit is contained in:
parent
0e77c0c88a
commit
a2b06b7626
28 changed files with 579 additions and 607 deletions
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -469,7 +469,7 @@ function C1PCPU(parmsCPU)
|
|||
];
|
||||
}
|
||||
|
||||
Component.subclass(Component, C1PCPU);
|
||||
Component.subclass(C1PCPU);
|
||||
|
||||
/**
|
||||
* @this {C1PCPU}
|
||||
|
|
|
|||
|
|
@ -484,7 +484,7 @@ function C1PDebugger(parmsDbg)
|
|||
|
||||
if (DEBUGGER) {
|
||||
|
||||
Component.subclass(Component, C1PDebugger);
|
||||
Component.subclass(C1PDebugger);
|
||||
|
||||
/**
|
||||
* @this {C1PDebugger}
|
||||
|
|
|
|||
|
|
@ -433,7 +433,7 @@ function C1PDiskController(parmsDC)
|
|||
this.reset(true);
|
||||
}
|
||||
|
||||
Component.subclass(Component, C1PDiskController);
|
||||
Component.subclass(C1PDiskController);
|
||||
|
||||
/**
|
||||
* @this {C1PDiskController}
|
||||
|
|
|
|||
|
|
@ -295,7 +295,7 @@ function C1PKeyboard(parmsKbd)
|
|||
this.reset();
|
||||
}
|
||||
|
||||
Component.subclass(Component, C1PKeyboard);
|
||||
Component.subclass(C1PKeyboard);
|
||||
|
||||
/**
|
||||
* @this {C1PKeyboard}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ function C1PRAM(parmsRAM)
|
|||
Component.call(this, "C1PRAM", parmsRAM);
|
||||
}
|
||||
|
||||
Component.subclass(Component, C1PRAM);
|
||||
Component.subclass(C1PRAM);
|
||||
|
||||
/**
|
||||
* @this {C1PRAM}
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ function C1PSerialPort(parmsSerial)
|
|||
this.reset();
|
||||
}
|
||||
|
||||
Component.subclass(Component, C1PSerialPort);
|
||||
Component.subclass(C1PSerialPort);
|
||||
|
||||
/**
|
||||
* @this {C1PSerialPort}
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Reference in a new issue