From 7a07f622de6c6d6c9a597c39bbf467766fa6f54e Mon Sep 17 00:00:00 2001 From: Mike Castle Date: Tue, 26 Nov 2013 23:55:08 -0800 Subject: [PATCH 1/2] Fix a variety of typos. --- code/chat.js | 2 +- code/hooks.js | 6 +++--- mobile/smartphone.css | 4 ++-- plugins/portal-defense.user.js | 4 ++-- plugins/show-linked-portals.user.js | 18 +++++++++--------- 5 files changed, 17 insertions(+), 17 deletions(-) diff --git a/code/chat.js b/code/chat.js index 59e398bb..b5774ec6 100644 --- a/code/chat.js +++ b/code/chat.js @@ -106,7 +106,7 @@ window.chat.genPostData = function(isFaction, storageHash, getOlderMsgs) { // Currently this edge case is not handled. Let’s see if this is a // problem in crowded areas. $.extend(data, {minTimestampMs: min}); - // when requesting with an acutal minimum timestamp, request oldest rather than newest first. + // when requesting with an actual minimum timestamp, request oldest rather than newest first. // this matches the stock intel site, and ensures no gaps when continuing after an extended idle period if (min > -1) $.extend(data, {ascendingTimestampOrder: true}); } diff --git a/code/hooks.js b/code/hooks.js index b6a7ef6c..11c9b95c 100644 --- a/code/hooks.js +++ b/code/hooks.js @@ -64,18 +64,18 @@ window.runHooks = function(event, data) { if(VALID_HOOKS.indexOf(event) === -1) throw('Unknown event type: ' + event); if(!_hooks[event]) return true; - var interupted = false; + var interrupted = false; $.each(_hooks[event], function(ind, callback) { try { if (callback(data) === false) { - interupted = true; + interrupted = true; return false; //break from $.each } } catch(err) { console.error('error running hook '+event+', error: '+err); } }); - return !interupted; + return !interrupted; } diff --git a/mobile/smartphone.css b/mobile/smartphone.css index bec0a5e8..be95476e 100644 --- a/mobile/smartphone.css +++ b/mobile/smartphone.css @@ -198,14 +198,14 @@ body { .linkdetails aside { padding: 5px; margin-top: 3px; - margin-botton: 3px; + margin-bottom: 3px; border: 2px outset #0e3d4e; } #toolbox > a { padding: 5px; margin-top: 3px; - margin-botton: 3px; + margin-bottom: 3px; border: 2px outset #0e3d4e; } diff --git a/plugins/portal-defense.user.js b/plugins/portal-defense.user.js index 9f95ce4d..574fb033 100644 --- a/plugins/portal-defense.user.js +++ b/plugins/portal-defense.user.js @@ -68,7 +68,7 @@ window.plugin.portalDefense.renderAttackRegion = function(portal) { } var region = L.marker(portal.getLatLng(), { icon: L.divIcon({ - className: 'plugin-iic-defense', + className: 'plugin-iitc-defense', clickable: false, iconAnchor: [-10,10], html: "
"+display+"
" @@ -127,7 +127,7 @@ var setup = function() { $('#toolbox').append(' Reload Defense'); $("