Inline goog.isDef() calls for properties

This commit is contained in:
Tim Schaub
2015-09-27 10:40:20 -06:00
parent 36e336f406
commit 83c59ee255
44 changed files with 200 additions and 198 deletions

View File

@@ -36,7 +36,7 @@ ol.tilegrid.TileGrid = function(options) {
* @protected
* @type {number}
*/
this.minZoom = goog.isDef(options.minZoom) ? options.minZoom : 0;
this.minZoom = options.minZoom !== undefined ? options.minZoom : 0;
/**
* @private
@@ -57,7 +57,7 @@ ol.tilegrid.TileGrid = function(options) {
* @private
* @type {ol.Coordinate}
*/
this.origin_ = goog.isDef(options.origin) ? options.origin : null;
this.origin_ = options.origin !== undefined ? options.origin : null;
/**
* @private
@@ -97,7 +97,7 @@ ol.tilegrid.TileGrid = function(options) {
* @private
* @type {number|ol.Size}
*/
this.tileSize_ = goog.isDef(options.tileSize) ?
this.tileSize_ = options.tileSize !== undefined ?
options.tileSize :
goog.isNull(this.tileSizes_) ? ol.DEFAULT_TILE_SIZE : null;
goog.asserts.assert(