Changeset 7488
- Timestamp:
- 07/11/08 10:47:53 (2 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/vector-behavior/lib/OpenLayers/Strategy/Grid.js
r7484 r7488 69 69 this.features = []; 70 70 OpenLayers.Util.extend(this, options); 71 this.strategy.layer.events.on({ 72 'beforefeatureremoved': this.beforefeatureremoved, 73 scope: this 74 }); 71 75 }, 72 76 … … 74 78 */ 75 79 destroy: function() { 80 this.strategy.layer.events.un({ 81 'beforefeatureremoved': this.beforefeatureremoved, 82 scope: this 83 }); 76 84 this.destroyFeatures(); 77 85 this.bounds = null; … … 79 87 this.strategy = null; 80 88 this.features = null; 89 }, 90 91 /** 92 */ 93 beforefeatureremoved: function(obj) { 94 var feature = obj.feature; 95 OpenLayers.Util.removeItem(this.features, feature); 81 96 }, 82 97
