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

git-svn-id: http://svn.openlayers.org/trunk/openlayers@2859 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Schuyler Erle
2007-03-22 20:35:16 +00:00
parent 3ed14463f2
commit 185d10f211
2 changed files with 3 additions and 3 deletions

View File

@@ -18,7 +18,7 @@
*/
OpenLayers.Geometry.Point = OpenLayers.Class.create();
OpenLayers.Geometry.Point.prototype =
OpenLayers.Class.inherit(OpenLayers.LonLat, OpenLayers.Geometry, {
OpenLayers.Class.inherit(OpenLayers.Geometry, OpenLayers.LonLat, {
/** @type float */
x: null,
@@ -33,8 +33,8 @@ OpenLayers.Geometry.Point.prototype =
* @param {float} y
*/
initialize: function(x, y) {
OpenLayers.LonLat.prototype.initialize.apply(this, arguments);
OpenLayers.Geometry.prototype.initialize.apply(this, arguments);
OpenLayers.LonLat.prototype.initialize.apply(this, arguments);
this.x = this.lon;
this.y = this.lat;