Remove jshint -W069 tags in source code

The check in already disabled in .jshintrc
This commit is contained in:
Frederic Junod
2015-10-21 16:15:50 +02:00
parent 519e7976cd
commit a84db3add6
3 changed files with 0 additions and 10 deletions

View File

@@ -13,7 +13,6 @@ goog.require('ol.style.Style');
var styleFunction = (function() { var styleFunction = (function() {
/* jshint -W069 */
var styles = {}; var styles = {};
var image = new ol.style.Circle({ var image = new ol.style.Circle({
radius: 5, radius: 5,
@@ -58,7 +57,6 @@ var styleFunction = (function() {
return function(feature, resolution) { return function(feature, resolution) {
return styles[feature.getGeometry().getType()] || styles['default']; return styles[feature.getGeometry().getType()] || styles['default'];
}; };
/* jshint +W069 */
})(); })();
var geojsonObject = { var geojsonObject = {
@@ -169,7 +167,6 @@ var layer = new ol.layer.Vector({
}); });
var overlayStyle = (function() { var overlayStyle = (function() {
/* jshint -W069 */
var styles = {}; var styles = {};
styles['Polygon'] = [ styles['Polygon'] = [
new ol.style.Style({ new ol.style.Style({
@@ -230,7 +227,6 @@ var overlayStyle = (function() {
return function(feature, resolution) { return function(feature, resolution) {
return styles[feature.getGeometry().getType()]; return styles[feature.getGeometry().getType()];
}; };
/* jshint +W069 */
})(); })();
var select = new ol.interaction.Select({ var select = new ol.interaction.Select({

View File

@@ -49,10 +49,8 @@ var displayCountryInfo = function(coordinate) {
// info.innerHTML = Mustache.render(gridSource.getTemplate(), data); // info.innerHTML = Mustache.render(gridSource.getTemplate(), data);
mapElement.style.cursor = data ? 'pointer' : ''; mapElement.style.cursor = data ? 'pointer' : '';
if (data) { if (data) {
/* jshint -W069 */
flagElement.src = 'data:image/png;base64,' + data['flag_png']; flagElement.src = 'data:image/png;base64,' + data['flag_png'];
nameElement.innerHTML = data['admin']; nameElement.innerHTML = data['admin'];
/* jshint +W069 */
} }
infoOverlay.setPosition(data ? coordinate : undefined); infoOverlay.setPosition(data ? coordinate : undefined);
}); });

View File

@@ -338,8 +338,6 @@ ol.source.WMTS.prototype.updateDimensions = function(dimensions) {
*/ */
ol.source.WMTS.optionsFromCapabilities = function(wmtsCap, config) { ol.source.WMTS.optionsFromCapabilities = function(wmtsCap, config) {
/* jshint -W069 */
// TODO: add support for TileMatrixLimits // TODO: add support for TileMatrixLimits
goog.asserts.assert(config['layer'], goog.asserts.assert(config['layer'],
'config "layer" must not be null'); 'config "layer" must not be null');
@@ -501,6 +499,4 @@ ol.source.WMTS.optionsFromCapabilities = function(wmtsCap, config) {
wrapX: wrapX wrapX: wrapX
}; };
/* jshint +W069 */
}; };