[Commits] r228 - sandbox/opengeo/alachua/lib/GeoExt/layer
commits at geoext.org
commits at geoext.org
Mon Mar 16 22:22:32 CET 2009
Author: tcoulter
Date: 2009-03-16 22:22:32 +0100 (Mon, 16 Mar 2009)
New Revision: 228
Modified:
sandbox/opengeo/alachua/lib/GeoExt/layer/Vector.js
Log:
Remove unneeded code; make store.removeAll() work.
Modified: sandbox/opengeo/alachua/lib/GeoExt/layer/Vector.js
===================================================================
--- sandbox/opengeo/alachua/lib/GeoExt/layer/Vector.js 2009-03-16 20:57:07 UTC (rev 227)
+++ sandbox/opengeo/alachua/lib/GeoExt/layer/Vector.js 2009-03-16 21:22:32 UTC (rev 228)
@@ -40,14 +40,12 @@
},
onClear: function(store) {
- alert('asdfads');
-
+ this.removeFeatures(this.features);
},
onLoad: function(store, options) {
- //if (options.add == false) {
- this.removeFeatures(this.features);
- //}
+ this.removeFeatures(this.features);
+
store.each(function(record) {
this.addFeatures(this.getFeatureFromRecord(record));
}, this)
More information about the Commits
mailing list