From 833abcf6f12f5252fc98ec54d5cefab5380d7562 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Mon, 2 Apr 2007 10:52:10 +0000 Subject: [PATCH] #605 "OpenLayers.Feature.Vector: destroy() is defined twice" by fredj, patch by euzuro. thx euz, fredj. git-svn-id: http://svn.openlayers.org/trunk/openlayers@2968 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Feature/Vector.js | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/lib/OpenLayers/Feature/Vector.js b/lib/OpenLayers/Feature/Vector.js index 5bf186eb7f..ede230e254 100644 --- a/lib/OpenLayers/Feature/Vector.js +++ b/lib/OpenLayers/Feature/Vector.js @@ -54,7 +54,14 @@ OpenLayers.Feature.Vector.prototype = this.style = style ? style : null; }, - + /** + * + */ + destroy: function() { + this.geometry = null; + OpenLayers.Feature.prototype.destroy.apply(this, arguments); + }, + /** * @returns An exact clone of this OpenLayers.Feature * @type OpenLayers.Feature @@ -70,14 +77,6 @@ OpenLayers.Feature.Vector.prototype = return obj; }, - /** - * - */ - destroy: function() { - this.geometry = null; - OpenLayers.Feature.prototype.destroy.apply(this, arguments); - }, - /** * HACK - we need to rewrite this for non-point geometry * @returns null - we need to rewrite this for non-point geometry @@ -237,10 +236,6 @@ OpenLayers.Feature.Vector.prototype = } }, - destroy: function() { - - }, - CLASS_NAME: "OpenLayers.Feature.Vector" });