diff --git a/lib/OpenLayers/Projection.js b/lib/OpenLayers/Projection.js index 750970735a..53cbae45b8 100644 --- a/lib/OpenLayers/Projection.js +++ b/lib/OpenLayers/Projection.js @@ -11,7 +11,19 @@ * then this is just an empty stub. */ OpenLayers.Projection = OpenLayers.Class({ + + /** + * Property: proj + * {Object} Proj4js.Proj instance. + */ + proj: null, + /** + * Property: projCode + * {String} + */ + projCode: null, + /** * Constructor: OpenLayers.Projection * This class offers several methods for interacting with a wrapped @@ -75,10 +87,7 @@ OpenLayers.Projection = OpenLayers.Class({ * {Boolean} The two projections are equivalent. */ equals: function(projection) { - if (this.getCode() == projection.getCode()) { - return true; - } - return false; + return this.getCode() == projection.getCode(); }, /* Method: destroy