Clean up lint.

This commit is contained in:
Will Scullin 2020-03-26 20:01:24 -07:00
parent 3932c1a919
commit 8af8cdbbca
No known key found for this signature in database
GPG Key ID: 9092A5C0A673416B
4 changed files with 5 additions and 31 deletions

View File

@ -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) {

View File

@ -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() {

View File

@ -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 = '';

View File

@ -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++) {