Spell checking, d-g.
This commit is contained in:
@ -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];
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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();
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -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;
|
||||
|
@ -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 {
|
||||
|
Reference in New Issue
Block a user