Replace goog.isDef(foo[bar]) with bar in foo

This commit is contained in:
Tim Schaub
2015-09-27 10:58:39 -06:00
parent b3b31ea16d
commit 27d1e808b8
3 changed files with 7 additions and 7 deletions

View File

@@ -240,7 +240,7 @@ ol.source.TileWMS.prototype.getRequestUrl_ =
switch (this.serverType_) {
case ol.source.wms.ServerType.GEOSERVER:
var dpi = (90 * pixelRatio + 0.5) | 0;
if (goog.isDef(params['FORMAT_OPTIONS'])) {
if ('FORMAT_OPTIONS' in params) {
params['FORMAT_OPTIONS'] += ';dpi:' + dpi;
} else {
params['FORMAT_OPTIONS'] = 'dpi:' + dpi;