Revert "protect for in loops with hasOwnProperty"
This reverts commit e3cc96dbfb.
This commit is contained in:
@@ -168,16 +168,11 @@ OpenLayers.Control.SLDSelect = OpenLayers.Class(OpenLayers.Control, {
|
||||
* Take care of things that are not handled in superclass.
|
||||
*/
|
||||
destroy: function() {
|
||||
var key;
|
||||
for (key in this.layerCache) {
|
||||
if (this.layerCache.hasOwnProperty(key)) {
|
||||
delete this.layerCache[key];
|
||||
}
|
||||
for (var key in this.layerCache) {
|
||||
delete this.layerCache[key];
|
||||
}
|
||||
for (key in this.wfsCache) {
|
||||
if (this.wfsCache.hasOwnProperty(key)) {
|
||||
delete this.wfsCache[key];
|
||||
}
|
||||
for (var key in this.wfsCache) {
|
||||
delete this.wfsCache[key];
|
||||
}
|
||||
OpenLayers.Control.prototype.destroy.apply(this, arguments);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user