Revert "protect for in loops with hasOwnProperty"
This reverts commit e3cc96dbfb.
This commit is contained in:
@@ -142,10 +142,8 @@ OpenLayers.Layer.MapServer = OpenLayers.Class(OpenLayers.Layer.Grid, {
|
||||
var urlParams = OpenLayers.Util.upperCaseObject(
|
||||
OpenLayers.Util.getParameters(url));
|
||||
for(var key in allParams) {
|
||||
if (allParams.hasOwnProperty(key)) {
|
||||
if(key.toUpperCase() in urlParams) {
|
||||
delete allParams[key];
|
||||
}
|
||||
if(key.toUpperCase() in urlParams) {
|
||||
delete allParams[key];
|
||||
}
|
||||
}
|
||||
paramsString = OpenLayers.Util.getParameterString(allParams);
|
||||
|
||||
Reference in New Issue
Block a user