OpenLayers OpenLayers

Changeset 5408

Show
Ignore:
Timestamp:
12/14/07 08:52:43 (1 year ago)
Author:
fredj
Message:

Declare 'proj' and 'projCode' properties, simplify verbose code

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Projection.js

    r5405 r5408  
    1212 */ 
    1313OpenLayers.Projection = OpenLayers.Class({ 
     14 
     15    /** 
     16     * Property: proj 
     17     * {Object} Proj4js.Proj instance. 
     18     */ 
     19    proj: null, 
    1420     
     21    /** 
     22     * Property: projCode 
     23     * {String} 
     24     */ 
     25    projCode: null, 
     26 
    1527    /** 
    1628     * Constructor: OpenLayers.Projection 
     
    7688     */ 
    7789    equals: function(projection) { 
    78         if (this.getCode() == projection.getCode()) { 
    79             return true; 
    80         } 
    81         return false; 
     90        return this.getCode() == projection.getCode(); 
    8291    }, 
    8392