Remove useless globals
This commit is contained in:
parent
f251da711b
commit
5b99b51c64
20 changed files with 1 additions and 50 deletions
|
|
@ -6,7 +6,6 @@
|
|||
"sub": true,
|
||||
"globalstrict": true,
|
||||
"globals": {
|
||||
"APP_PCJS": true,
|
||||
"APPNAME": false,
|
||||
"APPVERSION": false,
|
||||
"SITEHOST": false,
|
||||
|
|
|
|||
|
|
@ -1466,6 +1466,4 @@ Bus.prototype.reportError = function(op, addr, size)
|
|||
return false;
|
||||
};
|
||||
|
||||
if (typeof APP_PCJS !== 'undefined') APP_PCJS.Bus = Bus;
|
||||
|
||||
if (typeof module !== 'undefined') module.exports = Bus;
|
||||
|
|
|
|||
|
|
@ -5020,6 +5020,4 @@ ChipSet.init = function()
|
|||
*/
|
||||
web.onInit(ChipSet.init);
|
||||
|
||||
if (typeof APP_PCJS !== 'undefined') APP_PCJS.ChipSet = ChipSet;
|
||||
|
||||
if (typeof module !== 'undefined') module.exports = ChipSet;
|
||||
|
|
|
|||
|
|
@ -1355,6 +1355,4 @@ web.onInit(Computer.init);
|
|||
web.onShow(Computer.show);
|
||||
web.onExit(Computer.exit);
|
||||
|
||||
if (typeof APP_PCJS !== 'undefined') APP_PCJS.Computer = Computer;
|
||||
|
||||
if (typeof module !== 'undefined') module.exports = Computer;
|
||||
|
|
|
|||
|
|
@ -1137,6 +1137,4 @@ CPU.prototype.yieldCPU = function()
|
|||
this.updateCPU();
|
||||
};
|
||||
|
||||
if (typeof APP_PCJS !== 'undefined') APP_PCJS.CPU = CPU;
|
||||
|
||||
if (typeof module !== 'undefined') module.exports = CPU;
|
||||
|
|
|
|||
|
|
@ -5188,8 +5188,6 @@ if (DEBUGGER) {
|
|||
*/
|
||||
web.onInit(Debugger.init);
|
||||
|
||||
if (typeof APP_PCJS !== 'undefined') APP_PCJS.Debugger = Debugger;
|
||||
|
||||
} // endif DEBUGGER
|
||||
|
||||
if (typeof module !== 'undefined') module.exports = Debugger;
|
||||
|
|
|
|||
|
|
@ -32,14 +32,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* APP_PCJS collects all PCjs application globals in one convenient place
|
||||
*/
|
||||
if (DEBUG) {
|
||||
var APP_PCJS = {Component: null};
|
||||
if (typeof Component === 'function') APP_PCJS.Component = Component;
|
||||
}
|
||||
|
||||
/**
|
||||
* @define {string}
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -2166,6 +2166,4 @@ Disk.prototype.dumpSector = function(sector, pba, sDesc)
|
|||
return sDump;
|
||||
};
|
||||
|
||||
if (typeof APP_PCJS !== 'undefined') APP_PCJS.Disk = Disk;
|
||||
|
||||
if (typeof module !== 'undefined') module.exports = Disk;
|
||||
|
|
|
|||
|
|
@ -2497,6 +2497,4 @@ FDC.init = function() {
|
|||
*/
|
||||
web.onInit(FDC.init);
|
||||
|
||||
if (typeof APP_PCJS !== 'undefined') APP_PCJS.FDC = FDC;
|
||||
|
||||
if (typeof module !== 'undefined') module.exports = FDC;
|
||||
|
|
|
|||
|
|
@ -2854,6 +2854,4 @@ HDC.init = function()
|
|||
*/
|
||||
web.onInit(HDC.init);
|
||||
|
||||
if (typeof APP_PCJS !== 'undefined') APP_PCJS.HDC = HDC;
|
||||
|
||||
if (typeof module !== 'undefined') module.exports = HDC;
|
||||
|
|
|
|||
|
|
@ -2234,6 +2234,4 @@ Keyboard.init = function()
|
|||
*/
|
||||
web.onInit(Keyboard.init);
|
||||
|
||||
if (typeof APP_PCJS !== 'undefined') APP_PCJS.Keyboard = Keyboard;
|
||||
|
||||
if (typeof module !== 'undefined') module.exports = Keyboard;
|
||||
|
|
|
|||
|
|
@ -1006,6 +1006,4 @@ Memory.prototype = {
|
|||
}
|
||||
};
|
||||
|
||||
if (typeof APP_PCJS !== 'undefined') APP_PCJS.Memory = Memory;
|
||||
|
||||
if (typeof module !== 'undefined') module.exports = Memory;
|
||||
|
|
|
|||
|
|
@ -656,6 +656,4 @@ Mouse.init = function()
|
|||
*/
|
||||
web.onInit(Mouse.init);
|
||||
|
||||
if (typeof APP_PCJS !== 'undefined') APP_PCJS.Mouse = Mouse;
|
||||
|
||||
if (typeof module !== 'undefined') module.exports = Mouse;
|
||||
|
|
|
|||
|
|
@ -955,6 +955,4 @@ Panel.init = function()
|
|||
*/
|
||||
web.onInit(Panel.init);
|
||||
|
||||
if (typeof APP_PCJS !== 'undefined') APP_PCJS.Panel = Panel;
|
||||
|
||||
if (typeof module !== 'undefined') module.exports = Panel;
|
||||
|
|
|
|||
|
|
@ -359,6 +359,4 @@ CompaqController.prototype.getMemoryAccess = function()
|
|||
*/
|
||||
web.onInit(RAM.init);
|
||||
|
||||
if (typeof APP_PCJS !== 'undefined') APP_PCJS.RAM = RAM;
|
||||
|
||||
if (typeof module !== 'undefined') module.exports = RAM;
|
||||
|
|
|
|||
|
|
@ -377,6 +377,4 @@ ROM.init = function()
|
|||
*/
|
||||
web.onInit(ROM.init);
|
||||
|
||||
if (typeof APP_PCJS !== 'undefined') APP_PCJS.ROM = ROM;
|
||||
|
||||
if (typeof module !== 'undefined') module.exports = ROM;
|
||||
|
|
|
|||
|
|
@ -761,6 +761,4 @@ SerialPort.init = function() {
|
|||
*/
|
||||
web.onInit(SerialPort.init);
|
||||
|
||||
if (typeof APP_PCJS !== 'undefined') APP_PCJS.SerialPort = SerialPort;
|
||||
|
||||
if (typeof module !== 'undefined') module.exports = SerialPort;
|
||||
|
|
|
|||
|
|
@ -414,6 +414,4 @@ State.prototype = {
|
|||
}
|
||||
};
|
||||
|
||||
if (typeof APP_PCJS !== 'undefined') APP_PCJS.State = State;
|
||||
|
||||
if (typeof module !== 'undefined') module.exports = State;
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ if (typeof module !== 'undefined') {
|
|||
* switches: string representing EGA switches (see "SW1-SW4" documentation below)
|
||||
* memory: the size of the EGA's on-board memory (overrides EGA's Video.cardSpecs)
|
||||
*
|
||||
* This calls the CPU to allocate a video buffer at the appropriate memory location whenever
|
||||
* This calls the Bus to allocate a video buffer at the appropriate memory location whenever
|
||||
* a reset() or setMode() occurs; setMode() is called whenever a mode change is detected at
|
||||
* the port level, and whenever reset() is called. setMode() also invokes updateScreen(true),
|
||||
* which forces reallocation of our internal buffer (aCellCache) that mirrors the video buffer.
|
||||
|
|
@ -5348,6 +5348,4 @@ Video.init = function()
|
|||
*/
|
||||
web.onInit(Video.init);
|
||||
|
||||
if (typeof APP_PCJS !== 'undefined') {APP_PCJS.Card = Card; APP_PCJS.Video = Video;}
|
||||
|
||||
if (typeof module !== 'undefined') module.exports = Video;
|
||||
|
|
|
|||
|
|
@ -3334,10 +3334,4 @@ X86CPU.init = function()
|
|||
*/
|
||||
web.onInit(X86CPU.init);
|
||||
|
||||
if (typeof APP_PCJS !== 'undefined') {
|
||||
APP_PCJS.X86 = X86;
|
||||
APP_PCJS.X86.X86CPU = X86CPU;
|
||||
APP_PCJS.X86.X86Seg = X86Seg;
|
||||
}
|
||||
|
||||
if (typeof module !== 'undefined') module.exports = X86CPU;
|
||||
|
|
|
|||
Loading…
Reference in a new issue