From aeb1626b085ab93e1946d287ab96a4dbd38a4b68 Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Sun, 23 Mar 2014 18:36:45 +0100 Subject: [PATCH] Suppress jshint warnings about use of String as a constructor --- src/ol/source/imagewmssource.js | 2 ++ src/ol/source/tilewmssource.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/ol/source/imagewmssource.js b/src/ol/source/imagewmssource.js index fbff7861d6..dec6944151 100644 --- a/src/ol/source/imagewmssource.js +++ b/src/ol/source/imagewmssource.js @@ -272,7 +272,9 @@ ol.source.ImageWMS.prototype.getRequestUrl_ = params[this.v13_ ? 'CRS' : 'SRS'] = projection.getCode(); if (!('STYLES' in this.params_)) { + /* jshint -W053 */ goog.object.set(params, 'STYLES', new String('')); + /* jshint +W053 */ } if (pixelRatio != 1) { diff --git a/src/ol/source/tilewmssource.js b/src/ol/source/tilewmssource.js index 9a3a927f93..98336f839a 100644 --- a/src/ol/source/tilewmssource.js +++ b/src/ol/source/tilewmssource.js @@ -237,7 +237,9 @@ ol.source.TileWMS.prototype.getRequestUrl_ = params[this.v13_ ? 'CRS' : 'SRS'] = projection.getCode(); if (!('STYLES' in this.params_)) { + /* jshint -W053 */ goog.object.set(params, 'STYLES', new String('')); + /* jshint +W053 */ } if (pixelRatio != 1) {