diff --git a/code/boot.js b/code/boot.js index 7d39eceb..d4120b2f 100644 --- a/code/boot.js +++ b/code/boot.js @@ -163,7 +163,7 @@ window.setupMap = function() { if(!isLayerGroupDisplayed('Links', true)) hiddenLayer.push(linksLayer); // faction-specific layers - // these layers don't actually contain any data. instead, everytime they're added/removed from the map, + // these layers don't actually contain any data. instead, every time they're added/removed from the map, // the matching sub-layers within the above portals/fields/links are added/removed from their parent with // the below 'onoverlayadd/onoverlayremovve' events var factionLayers = [L.layerGroup(), L.layerGroup(), L.layerGroup()]; diff --git a/code/map_data_cache.js b/code/map_data_cache.js index a04070fc..f5b90579 100644 --- a/code/map_data_cache.js +++ b/code/map_data_cache.js @@ -5,7 +5,7 @@ window.DataCache = function() { // stock site nemesis.dashboard.DataManager.CACHE_EXPIRY_MS_ = 18E4 - so should be 2 mins cache time this.REQUEST_CACHE_FRESH_AGE = 120; // if younger than this, use data in the cache rather than fetching from the server - // stale cache entries can be updated (that's what the optional 'timestampMs' field in getThinnedEntnties is + // stale cache entries can be updated (that's what the optional 'timestampMs' field in getThinnedEntities is // for, retrieving deltas) so use a long max age to take advantage of this // however, ther must be an overall limit on the maximum age of data from the servers, otherwise the deletedEntity // entries would grow indefinitely. an hour seems reasonable from experience with the data, so 55 mins max cache time diff --git a/code/map_data_render.js b/code/map_data_render.js index e88a7a39..1a651875 100644 --- a/code/map_data_render.js +++ b/code/map_data_render.js @@ -7,7 +7,7 @@ window.Render = function() { // when there are lots of portals close together, we only add some of them to the map // the idea is to keep the impression of the dense set of portals, without rendering them all - this.CLUSTER_SIZE = L.Browser.mobile ? 16 : 8; // the map is divited into squares of this size in pixels for clustering purposes. mobile uses larger markers, so therefore larger clustering areas + this.CLUSTER_SIZE = L.Browser.mobile ? 16 : 8; // the map is divided into squares of this size in pixels for clustering purposes. mobile uses larger markers, so therefore larger clustering areas this.CLUSTER_PORTAL_LIMIT = 4; // no more than this many portals are drawn in each cluster square // link length, in pixels, to be visible. use the portal cluster size, as shorter than this is likely hidden diff --git a/external/L.Geodesic.js b/external/L.Geodesic.js index 05a5f930..20955133 100644 --- a/external/L.Geodesic.js +++ b/external/L.Geodesic.js @@ -88,9 +88,9 @@ Modified by qnstie 2013-07-17 to maintain compatibility with Leaflet.draw latlngs[i] = L.latLng(latlngs[i]); } - // geodrsic calculations have issues when crossing the anti-meridian. so offset the points + // geodesic calculations have issues when crossing the anti-meridian. so offset the points // so this isn't an issue, then add back the offset afterwards - // a center longitude would be ideal - but the start point logitude will be 'good enougn' + // a center longitude would be ideal - but the start point logitude will be 'good enough' var lngOffset = latlngs[0].lng; // points are wrapped after being offset relative to the first point coordinate, so they're diff --git a/mobile/src/com/cradle/iitc_mobile/IITC_Mobile.java b/mobile/src/com/cradle/iitc_mobile/IITC_Mobile.java index e9e45845..92bcc447 100644 --- a/mobile/src/com/cradle/iitc_mobile/IITC_Mobile.java +++ b/mobile/src/com/cradle/iitc_mobile/IITC_Mobile.java @@ -527,7 +527,7 @@ public class IITC_Mobile extends Activity implements OnSharedPreferenceChangeLis } } - // vp=f enables mDesktopMode mode...vp=m is the defaul mobile view + // vp=f enables mDesktopMode mode...vp=m is the default mobile view private String addUrlParam(String url) { if (mDesktopMode) { return (url + "?vp=f"); diff --git a/mobile/src/com/cradle/iitc_mobile/IITC_WebViewClient.java b/mobile/src/com/cradle/iitc_mobile/IITC_WebViewClient.java index 6ef09738..f1e8af47 100644 --- a/mobile/src/com/cradle/iitc_mobile/IITC_WebViewClient.java +++ b/mobile/src/com/cradle/iitc_mobile/IITC_WebViewClient.java @@ -289,9 +289,9 @@ public class IITC_WebViewClient extends WebViewClient { return new WebResourceResponse("text/css", "UTF-8", STYLE); // } else if (url.contains("gen_dashboard.js")) { // // define initialize function to get rid of JS ReferenceError on intel page's 'onLoad' -// String gen_dashboad_replacement = "window.initialize = function() {}"; +// String gen_dashboard_replacement = "window.initialize = function() {}"; // return new WebResourceResponse("text/javascript", "UTF-8", -// new ByteArrayInputStream(gen_dashboad_replacement.getBytes())); +// new ByteArrayInputStream(gen_dashboard_replacement.getBytes())); } else if (url.contains("/css/ap_icons.css") || url.contains("/css/map_icons.css") || url.contains("/css/common.css") diff --git a/plugins/ap-list.user.js b/plugins/ap-list.user.js index 8f34e0e7..9a2b99bd 100644 --- a/plugins/ap-list.user.js +++ b/plugins/ap-list.user.js @@ -579,7 +579,7 @@ window.plugin.apList.getShieldsEffect = function(portal) { // Sorting done by loop through the options, get the property by // property chain of each option, compare the property of two object // with the ordering of option and return the result when the first -// differece is found. +// difference is found. window.plugin.apList.comparePortal = function(a,b) { var result = 0; var options = plugin.apList.sortOptions[plugin.apList.sortBy]; diff --git a/plugins/basemap-yandex.user.js b/plugins/basemap-yandex.user.js index 5e65092e..88c07573 100644 --- a/plugins/basemap-yandex.user.js +++ b/plugins/basemap-yandex.user.js @@ -25,7 +25,7 @@ window.plugin.mapTileYandex = function() {}; window.plugin.mapTileYandex.setup = function() { //a few options on language are available, including en-US. Oddly, the detail available on the maps varies -//dependong on the language +//depending on the language var yandexApiJs = '//api-maps.yandex.ru/2.0-stable/?load=package.standard&lang=ru-RU' load(yandexApiJs).thenRun(window.plugin.mapTileYandex.addLayer); diff --git a/plugins/bookmarks-by-zaso.user.js b/plugins/bookmarks-by-zaso.user.js index ef694fcc..e59b4a32 100644 --- a/plugins/bookmarks-by-zaso.user.js +++ b/plugins/bookmarks-by-zaso.user.js @@ -730,7 +730,7 @@ window.plugin.bookmarks.syncCallback = function(pluginName, fieldName, e, fullUpdated) { if(fieldName === window.plugin.bookmarks.KEY.field) { window.plugin.bookmarks.storeLocal(window.plugin.bookmarks.KEY); - // All data is replaced if other client update the data duing this client offline, + // All data is replaced if other client update the data during this client offline, if(fullUpdated) { window.plugin.bookmarks.refreshBkmrks(); return; diff --git a/plugins/keys.user.js b/plugins/keys.user.js index bd9984a7..d1aa488a 100644 --- a/plugins/keys.user.js +++ b/plugins/keys.user.js @@ -107,7 +107,7 @@ window.plugin.keys.registerFieldForSyncing = function() { window.plugin.keys.syncCallback = function(pluginName, fieldName, e, fullUpdated) { if(fieldName === 'keys') { plugin.keys.storeLocal(plugin.keys.KEY); - // All data is replaced if other client update the data duing this client offline, + // All data is replaced if other client update the data during this client offline, // fire 'pluginKeysRefreshAll' to notify a full update if(fullUpdated) { plugin.keys.updateDisplayCount(); diff --git a/plugins/portals-list.user.js b/plugins/portals-list.user.js index a39c50b9..8031be7b 100644 --- a/plugins/portals-list.user.js +++ b/plugins/portals-list.user.js @@ -355,7 +355,7 @@ window.plugin.portalslist.stats = function(sortBy) { return html; } -// A little helper functon so the above isn't so messy +// A little helper function so the above isn't so messy window.plugin.portalslist.portalTableSort = function(name, by) { var retVal = 'data-sort="' + name + '"'; if(name === by) { diff --git a/plugins/scoreboard.user.js b/plugins/scoreboard.user.js index 7aa1756e..d80cc819 100644 --- a/plugins/scoreboard.user.js +++ b/plugins/scoreboard.user.js @@ -216,7 +216,7 @@ window.plugin.scoreboard.playerTable = function(sortBy) { return scoreHtml; } -// A little helper functon so the above isn't so messy +// A little helper function so the above isn't so messy window.plugin.scoreboard.playerTableSort = function(name, by) { var retVal = 'data-sort="' + name + '"'; if(name === by) { diff --git a/plugins/show-address.user.js b/plugins/show-address.user.js index b4765ce5..8b938a77 100644 --- a/plugins/show-address.user.js +++ b/plugins/show-address.user.js @@ -22,7 +22,7 @@ window.plugin.portalAddress = function() {}; window.plugin.portalAddress.portalDetail = function(data) { - // If there's 4 sets of comma delimieted info the last one is the + // If there's 4 sets of comma delimited info the last one is the // country, so get rid of it. If the country is in the [2] then it // doesn't matter because address is usually short enough to fit. var d = data.portalDetails.portalV2; diff --git a/plugins/sync.user.js b/plugins/sync.user.js index 24a5a6c7..0cf0961d 100644 --- a/plugins/sync.user.js +++ b/plugins/sync.user.js @@ -60,7 +60,7 @@ window.plugin.sync.updateMap = function(pluginName, fieldName, keyArray) { // example: plugin.sync.registerMapForSync('keys', 'keysdata', plugin.keys.updateCallback, plugin.keys.initializedCallback) // which register plugin.keys.keysdata // -// updateCallback function format: function(pluginName, fieldName, eventObejct, fullUpdated) +// updateCallback function format: function(pluginName, fieldName, eventObject, fullUpdated) // updateCallback will be fired when local or remote pushed update to Google Realtime API // fullUpdated is true when remote update occur during local client offline, all data is replaced by remote data // eventObject is a ValueChangedEvent, is null if fullUpdated is true @@ -68,7 +68,7 @@ window.plugin.sync.updateMap = function(pluginName, fieldName, keyArray) { // detail of ValueChangedEvent refer to following url // https://developers.google.com/drive/realtime/reference/gapi.drive.realtime.ValueChangedEvent // -// initializedCallback funciton format: function(pluginName, fieldName) +// initializedCallback function format: function(pluginName, fieldName) // initializedCallback will be fired when the CollaborativeMap finished initialize and good to use window.plugin.sync.registerMapForSync = function(pluginName, fieldName, callback, initializedCallback) { var options, registeredMap; @@ -244,7 +244,7 @@ window.plugin.sync.RegisteredMap.prototype.loadRealtimeDocument = function(callb } else if(e.type === gapi.drive.realtime.ErrorType.NOT_FOUND) { _this.forceFileSearch = true; } else if(e.type === gapi.drive.realtime.ErrorType.CLIENT_ERROR) { - // Workaround: if Realtime API open a second docuemnt and the file do not exist, + // Workaround: if Realtime API open a second document and the file do not exist, // it will rasie 'CLIENT_ERROR' instead of 'NOT_FOUND'. So we do a force file search here. _this.forceFileSearch = true; } else {