Don't use the string constructor
This commit is contained in:
1 parent
762aa3029c
commit
63ebed437b
2 files changed
+2
-2
No files matched your search
@@ -275,7 +275,7 @@ ol.source.ImageWMS.prototype.getRequestUrl_ = function(extent, size, pixelRatio,
|
||||
params[this.v13_ ? 'CRS' : 'SRS'] = projection.getCode();
|
||||
|
||||
if (!('STYLES' in this.params_)) {
|
||||
params['STYLES'] = new String('');
|
||||
params['STYLES'] = '';
|
||||
}
|
||||
|
||||
if (pixelRatio != 1) {
|
||||
|
||||
@@ -234,7 +234,7 @@ ol.source.TileWMS.prototype.getRequestUrl_ = function(tileCoord, tileSize, tileE
|
||||
params[this.v13_ ? 'CRS' : 'SRS'] = projection.getCode();
|
||||
|
||||
if (!('STYLES' in this.params_)) {
|
||||
params['STYLES'] = new String('');
|
||||
params['STYLES'] = '';
|
||||
}
|
||||
|
||||
if (pixelRatio != 1) {
|
||||
|
||||
Reference in new issue
Block a user