OpenLayers OpenLayers

Changeset 2859

Show
Ignore:
Timestamp:
03/22/07 16:35:16 (2 years ago)
Author:
sderle
Message:

Fix the inheritance chain in Geometry.Point. Fixes #551.

Files:

Legend:

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

    r2803 r2859  
    1010    create: function() { 
    1111        return function() { 
    12             if (arguments && arguments[0] != OpenLayers.Class.isPrototype) 
     12            if (!arguments || arguments[0] != OpenLayers.Class.isPrototype) 
    1313                this.initialize.apply(this, arguments); 
    1414        } 
  • trunk/openlayers/lib/OpenLayers/Geometry/Point.js

    r2803 r2859  
    1919OpenLayers.Geometry.Point = OpenLayers.Class.create(); 
    2020OpenLayers.Geometry.Point.prototype = 
    21     OpenLayers.Class.inherit(OpenLayers.LonLat, OpenLayers.Geometry, { 
     21    OpenLayers.Class.inherit(OpenLayers.Geometry, OpenLayers.LonLat, { 
    2222 
    2323    /** @type float */ 
     
    3434     */ 
    3535    initialize: function(x, y) { 
     36        OpenLayers.Geometry.prototype.initialize.apply(this, arguments); 
    3637        OpenLayers.LonLat.prototype.initialize.apply(this, arguments); 
    37         OpenLayers.Geometry.prototype.initialize.apply(this, arguments); 
    3838         
    3939        this.x = this.lon;