Suppress jshint warnings about use of String as a constructor
This commit is contained in:
@@ -272,7 +272,9 @@ ol.source.ImageWMS.prototype.getRequestUrl_ =
|
|||||||
params[this.v13_ ? 'CRS' : 'SRS'] = projection.getCode();
|
params[this.v13_ ? 'CRS' : 'SRS'] = projection.getCode();
|
||||||
|
|
||||||
if (!('STYLES' in this.params_)) {
|
if (!('STYLES' in this.params_)) {
|
||||||
|
/* jshint -W053 */
|
||||||
goog.object.set(params, 'STYLES', new String(''));
|
goog.object.set(params, 'STYLES', new String(''));
|
||||||
|
/* jshint +W053 */
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pixelRatio != 1) {
|
if (pixelRatio != 1) {
|
||||||
|
|||||||
@@ -237,7 +237,9 @@ ol.source.TileWMS.prototype.getRequestUrl_ =
|
|||||||
params[this.v13_ ? 'CRS' : 'SRS'] = projection.getCode();
|
params[this.v13_ ? 'CRS' : 'SRS'] = projection.getCode();
|
||||||
|
|
||||||
if (!('STYLES' in this.params_)) {
|
if (!('STYLES' in this.params_)) {
|
||||||
|
/* jshint -W053 */
|
||||||
goog.object.set(params, 'STYLES', new String(''));
|
goog.object.set(params, 'STYLES', new String(''));
|
||||||
|
/* jshint +W053 */
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pixelRatio != 1) {
|
if (pixelRatio != 1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user