Spell check and found a bunch of new comments with typos.
This commit is contained in:
parent
82f4ee4410
commit
b783ef9cf6
@ -6,7 +6,7 @@
|
|||||||
// tile and a quadkey. Both the bounds and the quadkey are “somewhat”
|
// tile and a quadkey. Both the bounds and the quadkey are “somewhat”
|
||||||
// required to get complete data.
|
// required to get complete data.
|
||||||
//
|
//
|
||||||
// Convertion functions courtesy of
|
// Conversion functions courtesy of
|
||||||
// http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames
|
// http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames
|
||||||
|
|
||||||
|
|
||||||
|
@ -470,7 +470,7 @@ window.Render.prototype.addPortalToMapLayer = function(portal) {
|
|||||||
|
|
||||||
this.portalClusters[cid].push(portal.options.guid);
|
this.portalClusters[cid].push(portal.options.guid);
|
||||||
|
|
||||||
// now, at this point, we could match the above re-clustr code - sorting, and adding/removing as necessary
|
// now, at this point, we could match the above re-cluster code - sorting, and adding/removing as necessary
|
||||||
// however, it won't make a lot of visible difference compared to just pushing to the end of the list, then
|
// however, it won't make a lot of visible difference compared to just pushing to the end of the list, then
|
||||||
// adding to the visible layer if the list is below the limit
|
// adding to the visible layer if the list is below the limit
|
||||||
if (this.portalClusters[cid].length < this.CLUSTER_PORTAL_LIMIT || portal.options.guid == selectedPortal || artifact.isInterestingPortal(portal.options.guid)) {
|
if (this.portalClusters[cid].length < this.CLUSTER_PORTAL_LIMIT || portal.options.guid == selectedPortal || artifact.isInterestingPortal(portal.options.guid)) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/// PORTAL DETAIL //////////////////////////////////////
|
/// PORTAL DETAIL //////////////////////////////////////
|
||||||
// code to retrieve the new potal detail data from the servers
|
// code to retrieve the new portal detail data from the servers
|
||||||
|
|
||||||
// NOTE: the API for portal detailed information is NOT FINAL
|
// NOTE: the API for portal detailed information is NOT FINAL
|
||||||
// this is a temporary measure to get things working again after a major change to the intel map
|
// this is a temporary measure to get things working again after a major change to the intel map
|
||||||
@ -54,6 +54,6 @@ window.portalDetail.request = function(guid) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
})(); // anonumous wrapper function end
|
})(); // anonymous wrapper function end
|
||||||
|
|
||||||
|
|
||||||
|
@ -317,7 +317,7 @@ window.plugin.guessPlayerLevels.sort = function(playerHash) {
|
|||||||
|
|
||||||
|
|
||||||
var setup = function() {
|
var setup = function() {
|
||||||
// we used to sture level guesses as one localStorage key per player, named 'level-PLAYER_GUID'
|
// we used to store level guesses as one localStorage key per player, named 'level-PLAYER_GUID'
|
||||||
// they're now stored in a single storage key - 'plugin-guess-player-levels' - so clear these old entries
|
// they're now stored in a single storage key - 'plugin-guess-player-levels' - so clear these old entries
|
||||||
$.each(Object.keys(localStorage), function(ind,key) {// legacy code - should be removed in the future
|
$.each(Object.keys(localStorage), function(ind,key) {// legacy code - should be removed in the future
|
||||||
if(key.lastIndexOf('level-',0)===0) {
|
if(key.lastIndexOf('level-',0)===0) {
|
||||||
|
@ -155,7 +155,7 @@ window.plugin.keys.loadLocal = function(mapping) {
|
|||||||
: JSON.parse(objectJSON);
|
: JSON.parse(objectJSON);
|
||||||
}
|
}
|
||||||
|
|
||||||
// For backward compitable, will change to use loadLocal after a few version
|
// For backward compatibility, will change to use loadLocal after a few version
|
||||||
window.plugin.keys.loadKeys = function() {
|
window.plugin.keys.loadKeys = function() {
|
||||||
var keysObjectJSON = localStorage[plugin.keys.KEY.key];
|
var keysObjectJSON = localStorage[plugin.keys.KEY.key];
|
||||||
if(!keysObjectJSON) return;
|
if(!keysObjectJSON) return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user