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