Remove jshint -W069 tags in source code
The check in already disabled in .jshintrc
This commit is contained in:
@@ -13,7 +13,6 @@ goog.require('ol.style.Style');
|
||||
|
||||
|
||||
var styleFunction = (function() {
|
||||
/* jshint -W069 */
|
||||
var styles = {};
|
||||
var image = new ol.style.Circle({
|
||||
radius: 5,
|
||||
@@ -58,7 +57,6 @@ var styleFunction = (function() {
|
||||
return function(feature, resolution) {
|
||||
return styles[feature.getGeometry().getType()] || styles['default'];
|
||||
};
|
||||
/* jshint +W069 */
|
||||
})();
|
||||
|
||||
var geojsonObject = {
|
||||
@@ -169,7 +167,6 @@ var layer = new ol.layer.Vector({
|
||||
});
|
||||
|
||||
var overlayStyle = (function() {
|
||||
/* jshint -W069 */
|
||||
var styles = {};
|
||||
styles['Polygon'] = [
|
||||
new ol.style.Style({
|
||||
@@ -230,7 +227,6 @@ var overlayStyle = (function() {
|
||||
return function(feature, resolution) {
|
||||
return styles[feature.getGeometry().getType()];
|
||||
};
|
||||
/* jshint +W069 */
|
||||
})();
|
||||
|
||||
var select = new ol.interaction.Select({
|
||||
|
||||
@@ -49,10 +49,8 @@ var displayCountryInfo = function(coordinate) {
|
||||
// info.innerHTML = Mustache.render(gridSource.getTemplate(), data);
|
||||
mapElement.style.cursor = data ? 'pointer' : '';
|
||||
if (data) {
|
||||
/* jshint -W069 */
|
||||
flagElement.src = 'data:image/png;base64,' + data['flag_png'];
|
||||
nameElement.innerHTML = data['admin'];
|
||||
/* jshint +W069 */
|
||||
}
|
||||
infoOverlay.setPosition(data ? coordinate : undefined);
|
||||
});
|
||||
|
||||
@@ -338,8 +338,6 @@ ol.source.WMTS.prototype.updateDimensions = function(dimensions) {
|
||||
*/
|
||||
ol.source.WMTS.optionsFromCapabilities = function(wmtsCap, config) {
|
||||
|
||||
/* jshint -W069 */
|
||||
|
||||
// TODO: add support for TileMatrixLimits
|
||||
goog.asserts.assert(config['layer'],
|
||||
'config "layer" must not be null');
|
||||
@@ -501,6 +499,4 @@ ol.source.WMTS.optionsFromCapabilities = function(wmtsCap, config) {
|
||||
wrapX: wrapX
|
||||
};
|
||||
|
||||
/* jshint +W069 */
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user