codesite-noreply at google.com
2009-Sep-20 13:31 UTC
[Mapstraction] [mapstraction] r31 committed - cloudmade passing jslint
Revision: 31 Author: freyfogle Date: Sun Sep 20 06:30:15 2009 Log: cloudmade passing jslint http://code.google.com/p/mapstraction/source/detail?r=31 Modified: /trunk/build.xml /trunk/source/mxn.cloudmade.core.js ======================================--- /trunk/build.xml Sun Sep 20 06:26:44 2009 +++ /trunk/build.xml Sun Sep 20 06:30:15 2009 @@ -65,6 +65,10 @@ <arg value="tools/jslint/jslint.js"/> <arg value="${build.dir}/mxn.googlev3.core.js"/> </java> + <java jar="tools/rhino/js.jar" fork="true" failonerror="true"> + <arg value="tools/jslint/jslint.js"/> + <arg value="${build.dir}/mxn.cloudmade.core.js"/> + </java> <!-- document our sources --> <echo>--- DOC ---</echo> ======================================--- /trunk/source/mxn.cloudmade.core.js Sun Aug 23 19:47:07 2009 +++ /trunk/source/mxn.cloudmade.core.js Sun Sep 20 06:30:15 2009 @@ -122,7 +122,7 @@ setCenter: function(point, options) { var map = this.maps[this.api]; var pt = point.toProprietary(this.api); - if(options != null && options.pan) { map.panTo(pt); } + if(options !== null && options.pan) { map.panTo(pt); } else { map.setCenter(pt); } },