Merge pull request #4301 from fredj/jshint_cleanup

Remove jshint -W069 tags in source code
This commit is contained in:
Frédéric Junod
2015-10-21 17:19:18 +02:00
3 changed files with 0 additions and 10 deletions

View File

@@ -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({

View File

@@ -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);
});

View File

@@ -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 */
};