removed duplicate definition of unselectAll. Thanks fredj for finding this one. r=tschaub (closes #2229)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9727 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -248,25 +248,6 @@ OpenLayers.Control.GetFeature = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
|
||||||
* Method: unselectAll
|
|
||||||
* Unselect all selected features. To unselect all except for a single
|
|
||||||
* feature, set the options.except property to the feature.
|
|
||||||
*
|
|
||||||
* Parameters:
|
|
||||||
* options - {Object} Optional configuration object.
|
|
||||||
*/
|
|
||||||
unselectAll: function(options) {
|
|
||||||
// we'll want an option to supress notification here
|
|
||||||
var feature;
|
|
||||||
for(var i=this.features.length-1; i>=0; --i) {
|
|
||||||
feature = this.features[i];
|
|
||||||
if(!options || options.except != feature) {
|
|
||||||
this.unselect(feature);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method: selectSingle
|
* Method: selectSingle
|
||||||
* Called on click
|
* Called on click
|
||||||
|
|||||||
Reference in New Issue
Block a user