OpenLayers OpenLayers

Changeset 2334

Show
Ignore:
Timestamp:
03/05/07 14:32:32 (2 years ago)
Author:
euzuro
Message:

begin code standardsing Curve.js

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/vector-2.4/lib/OpenLayers/Geometry/Curve.js

    r2322 r2334  
    1212OpenLayers.Geometry.Curve.prototype =  
    1313  OpenLayers.Class.inherit(OpenLayers.Geometry, { 
     14 
     15    /** @type Array(OpenLayers.Geometry.Point) */ 
     16    path: null, 
    1417 
    1518    /** 
     
    3033                 
    3134        this.bounds = this.getBounds(); 
    32 //        this.bbox = new OpenLayers.Geometry.Rectangle(); 
    33 //        this.bbox.geometry = this; 
    3435    }, 
    3536     
     
    5859     */ 
    5960    getBounds: function(){ 
     61        var bounds = null; 
    6062        if (this.path.length > 0) { 
    6163            var xmin, ymin, xmax, ymax = null; 
     
    7577                } 
    7678            } 
    77             var bounds = new OpenLayers.Bounds(xmin, ymin, xmax, ymax); 
    78             return bounds; 
    79         } else { 
    80             return null; 
     79            bounds = new OpenLayers.Bounds(xmin, ymin, xmax, ymax); 
    8180        } 
     81        return bounds; 
    8282    }, 
    8383 
     
    113113    }, 
    114114     
     115    /** 
     116     * @returns  
     117     * @type float 
     118     */ 
    115119    getLength: function() { 
    116120        return OpenLayers.Util.length(this.path); 
    117121    }, 
    118      
     122 
     123    /** 
     124     *  
     125     */     
    119126    destroy: function () { 
    120127        this.path.length = 0;