OpenLayers OpenLayers

Ticket #565: inheritance.patch

File inheritance.patch, 1.5 kB (added by tschaub, 2 years ago)

I think this does the trick

  • lib/OpenLayers/BaseTypes.js

    old new  
    3232            //  
    3333            // to be revisited in 3.0 
    3434            //  
    35             if (arguments[i].toString) { 
     35            if (arguments[i].hasOwnProperty('toString')) { 
    3636                proto.toString = arguments[i].toString; 
    3737            } 
    3838        } 
  • lib/OpenLayers/Geometry/Collection.js

    old new  
    4747    }, 
    4848 
    4949    /** 
     50     * @returns The coordinates components as a string 
     51     * @type String 
     52     */ 
     53    toString: function() { 
     54        return this.components.toString(); 
     55    }, 
     56     
     57 
     58    /** 
    5059     * @returns An exact clone of this collection 
    5160     * @type OpenLayers.Geometry.Collection 
    5261     */ 
  • lib/OpenLayers/Geometry/LineString.js

    old new  
    2525    }, 
    2626 
    2727    /** 
    28      * @returns The coordinates components as a string 
    29      * @type String 
    30      */ 
    31     toString: function() { 
    32         return this.components.toString(); 
    33     }, 
    34      
    35     /** 
    3628     * @returns An exact clone of this OpenLayers.Feature 
    3729     * @type OpenLayers.Feature 
    3830     */