codesite-noreply at google.com
2009-Oct-04 09:16 UTC
[Mapstraction] [mapstraction] r43 committed - jslint passing and copy openlayers file during build
Revision: 43 Author: freyfogle Date: Sun Oct 4 02:16:15 2009 Log: jslint passing and copy openlayers file during build http://code.google.com/p/mapstraction/source/detail?r=43 Modified: /trunk/build.xml /trunk/source/mxn.core.js ======================================--- /trunk/build.xml Sun Sep 20 08:03:05 2009 +++ /trunk/build.xml Sun Oct 4 02:16:15 2009 @@ -35,6 +35,7 @@ <file file="${source}/mxn.google.core.js"/> <file file="${source}/mxn.googlev3.core.js"/> <file file="${source}/mxn.microsoft.core.js"/> + <file file="${source}/mxn.openlayers.core.js"/> <file file="${source}/mxn.yahoo.core.js"/> </resources> </copy> @@ -73,7 +74,6 @@ <arg value="tools/jslint/jslint.js"/> <arg value="${build.dir}/mxn.googlev3.core.js"/> </java> - <!-- document our sources --> <echo>--- DOC ---</echo> ======================================--- /trunk/source/mxn.core.js Sat Oct 3 11:14:41 2009 +++ /trunk/source/mxn.core.js Sun Oct 4 02:16:15 2009 @@ -36,7 +36,7 @@ this.layers = []; this.polylines = []; this.images = []; - this.controls = []; + this.controls = []; this.loaded = {}; this.onload = {}; this.element = element; @@ -1721,11 +1721,12 @@ // Create Radian conversion constant var rad = Math.PI / 180; - this.calcs = new Array(); - - for(var i = 0; i < 360; i += quality) - this.calcs.push([Math.cos(i * rad) / latConv, Math.sin(i * rad) / lonConv]); -} + 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 @@ -1734,7 +1735,7 @@ * @returns {Polyline} Polyline */ Radius.prototype.getPolyline = function(radius, colour) { - var points = Array(); + var points = []; for(var i = 0; i < this.calcs.length; i++){ var point = new LatLonPoint(