From b91371348ebd753fdb3e334c86d06a6657fa7c17 Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Sun, 23 Mar 2014 19:04:15 +0100 Subject: [PATCH] Disable warnings about property access --- examples/modify-test.js | 4 ++++ src/ol/source/wmtssource.js | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/examples/modify-test.js b/examples/modify-test.js index 96c5c5d5a4..34ef8bb3eb 100644 --- a/examples/modify-test.js +++ b/examples/modify-test.js @@ -13,6 +13,7 @@ goog.require('ol.style.Style'); var styleFunction = (function() { + /* jshint -W069 */ var styles = {}; var image = new ol.style.Circle({ radius: 5, @@ -57,6 +58,7 @@ var styleFunction = (function() { return function(feature, resolution) { return styles[feature.getGeometry().getType()] || styles['default']; }; + /* jshint +W069 */ })(); var source = new ol.source.GeoJSON( @@ -165,6 +167,7 @@ var layer = new ol.layer.Vector({ }); var overlayStyle = (function() { + /* jshint -W069 */ var styles = {}; styles['Polygon'] = [ new ol.style.Style({ @@ -225,6 +228,7 @@ var overlayStyle = (function() { return function(feature, resolution) { return styles[feature.getGeometry().getType()]; }; + /* jshint +W069 */ })(); var select = new ol.interaction.Select({ diff --git a/src/ol/source/wmtssource.js b/src/ol/source/wmtssource.js index bd0d7c514b..9bd0ce9c5c 100644 --- a/src/ol/source/wmtssource.js +++ b/src/ol/source/wmtssource.js @@ -243,6 +243,8 @@ ol.source.WMTS.prototype.updateDimensions = function(dimensions) { */ ol.source.WMTS.optionsFromCapabilities = function(wmtsCap, layer) { + /* jshint -W069 */ + // TODO: add support for TileMatrixLimits var layers = wmtsCap['contents']['layers']; @@ -328,4 +330,7 @@ ol.source.WMTS.optionsFromCapabilities = function(wmtsCap, layer) { style: style, dimensions: dimensions }; + + /* jshint +W069 */ + };