codesite-noreply at google.com
2009-Dec-13 19:30 UTC
[Mapstraction] [mapstraction] r68 committed - Fixing Lint warnings with missing semicolons and array initializations
Revision: 68
Author: ajturner
Date: Sun Dec 13 11:10:14 2009
Log: Fixing Lint warnings with missing semicolons and array initializations
http://code.google.com/p/mapstraction/source/detail?r=68
Modified:
/trunk/source/mxn.core.js
/trunk/source/mxn.js
======================================--- /trunk/source/mxn.core.js Sun Dec 13
11:10:00 2009
+++ /trunk/source/mxn.core.js Sun Dec 13 11:10:14 2009
@@ -407,8 +407,8 @@
* @param {Boolean} set deferred to true to turn on deferment
*/
Mapstraction.prototype.setDefer = function(deferred){
- this.loaded[this.api] = !deferred
-}
+ this.loaded[this.api] = !deferred;
+};
/**
* Run any queued provider API calls for the methods defined in the
provider''s implementation.
@@ -418,9 +418,9 @@
*/
Mapstraction.prototype.runDeferred = function(){
while(this.onload[this.api].length > 0) {
- this.onload[this.api].shift().apply(this) //run deferred calls
- }
-},
+ this.onload[this.api].shift().apply(this); //run deferred calls
+ }
+};
/////////////////////////
//
@@ -1744,11 +1744,12 @@
// Create Radian conversion constant
var rad = Math.PI / 180;
- this.calcs = new Array();
-
- for(var i = 0; i < 360; i += quality)
+ this.calcs = [];
+
+ for(var i = 0; i < 360; i += quality) {
this.calcs.push([Math.cos(i * rad) / latConv, Math.sin(i * rad) /
lonConv]);
-}
+ }
+};
/**
* Returns polyline of a circle around the point based on new radius
======================================--- /trunk/source/mxn.js Sun Dec 13
11:10:00 2009
+++ /trunk/source/mxn.js Sun Dec 13 11:10:14 2009
@@ -69,7 +69,7 @@
throw ''Method '' + sFnName + '' of object
'' + sObjName + '' is not
supported by API '' + sApiId + ''. Are you missing a script
tag?'';
}
if(typeof(apis[sApiId][sObjName].deferrable) !=
''undefined'' &&
apis[sApiId][sObjName].deferrable[sFnName] === true) {
- return mxn.deferUntilLoaded.call(oScope, function(){return
apis[sApiId][sObjName][sFnName].apply(oScope, args);} )
+ return mxn.deferUntilLoaded.call(oScope, function() {return
apis[sApiId][sObjName][sFnName].apply(oScope, args);} );
}
else {
return apis[sApiId][sObjName][sFnName].apply(oScope, args);
@@ -141,9 +141,9 @@
deferUntilLoaded: function(fnCall) {
if(this.loaded[this.api] === false) {
var scope = this;
- this.onload[this.api].push( fnCall )
+ this.onload[this.api].push( fnCall );
} else {
- return fnCall.call(this)
+ return fnCall.call(this);
}
},
/**