mirror of
https://github.com/whscullin/apple2js.git
synced 2024-01-12 14:14:38 +00:00
Clean up lint.
This commit is contained in:
parent
3932c1a919
commit
8af8cdbbca
@ -1263,11 +1263,7 @@ export default function CPU6502(options)
|
||||
};
|
||||
|
||||
if (is65C02) {
|
||||
for (var key in cops) {
|
||||
if (cops.hasOwnProperty(key)) {
|
||||
ops[key] = cops[key];
|
||||
}
|
||||
}
|
||||
Object.assign(ops, cops);
|
||||
}
|
||||
|
||||
function unknown(b) {
|
||||
|
@ -134,11 +134,9 @@ export default function MMU(cpu, vm, lores1, lores2, hires1, hires2, io, rom)
|
||||
function Switches() {
|
||||
var locs = {};
|
||||
|
||||
for (var loc in LOC) {
|
||||
if (LOC.hasOwnProperty(loc)) {
|
||||
locs[LOC[loc]] = loc;
|
||||
}
|
||||
}
|
||||
Object.keys(LOC).forEach(function(loc) {
|
||||
locs[LOC[loc]] = loc;
|
||||
});
|
||||
|
||||
return {
|
||||
start: function() {
|
||||
|
@ -472,13 +472,7 @@ function loadDisk(drive, disk) {
|
||||
|
||||
function updateLocalStorage() {
|
||||
var diskIndex = JSON.parse(window.localStorage.diskIndex || '{}');
|
||||
var names = [], name, cat;
|
||||
|
||||
for (name in diskIndex) {
|
||||
if (diskIndex.hasOwnProperty(name)) {
|
||||
names.push(name);
|
||||
}
|
||||
}
|
||||
var names = Object.keys(diskIndex), cat;
|
||||
|
||||
cat = disk_categories['Local Saves'] = [];
|
||||
document.querySelector('#manage-modal-content').innerHTML = '';
|
||||
|
14
js/util.js
14
js/util.js
@ -97,20 +97,6 @@ export function hup() {
|
||||
return results[1];
|
||||
}
|
||||
|
||||
export function keys(obj) {
|
||||
var result = [];
|
||||
for (var key in obj) {
|
||||
if (obj.hasOwnProperty(key)) {
|
||||
result.push(key);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
export function each(obj, fn) {
|
||||
keys(obj).forEach(fn);
|
||||
}
|
||||
|
||||
export function numToString(num) {
|
||||
let result = '';
|
||||
for (let idx = 0; idx < 4; idx++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user