Revert "protect for in loops with hasOwnProperty"
This reverts commit e3cc96dbfb.
This commit is contained in:
@@ -84,10 +84,8 @@ OpenLayers.Format.WMTSCapabilities = OpenLayers.Class(OpenLayers.Format.XML.Vers
|
||||
matrixSet: true
|
||||
};
|
||||
for (var prop in required) {
|
||||
if (required.hasOwnProperty(prop)) {
|
||||
if (!(prop in config)) {
|
||||
throw new Error("Missing property '" + prop + "' in layer configuration.");
|
||||
}
|
||||
if (!(prop in config)) {
|
||||
throw new Error("Missing property '" + prop + "' in layer configuration.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user