[OpenLayers-Commits] r2968 - trunk/openlayers/lib/OpenLayers/Feature
commits at openlayers.org
commits at openlayers.org
Mon Apr 2 06:52:13 EDT 2007
Author: crschmidt
Date: 2007-04-02 06:52:10 -0400 (Mon, 02 Apr 2007)
New Revision: 2968
Modified:
trunk/openlayers/lib/OpenLayers/Feature/Vector.js
Log:
#605 "OpenLayers.Feature.Vector: destroy() is defined twice" by fredj, patch
by euzuro. thx euz, fredj.
Modified: trunk/openlayers/lib/OpenLayers/Feature/Vector.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Feature/Vector.js 2007-04-02 05:40:44 UTC (rev 2967)
+++ trunk/openlayers/lib/OpenLayers/Feature/Vector.js 2007-04-02 10:52:10 UTC (rev 2968)
@@ -54,7 +54,14 @@
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
@@ -71,14 +78,6 @@
},
/**
- *
- */
- 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
* @type Boolean
@@ -237,10 +236,6 @@
}
},
- destroy: function() {
-
- },
-
CLASS_NAME: "OpenLayers.Feature.Vector"
});
More information about the Commits
mailing list