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
+4 -4
View File
@@ -47,7 +47,7 @@ ol.style.AtlasManager = function(opt_options) {
* @private
* @type {number}
*/
this.currentSize_ = goog.isDef(options.initialSize) ?
this.currentSize_ = options.initialSize !== undefined ?
options.initialSize : ol.INITIAL_ATLAS_SIZE;
/**
@@ -55,9 +55,9 @@ ol.style.AtlasManager = function(opt_options) {
* @private
* @type {number}
*/
this.maxSize_ = goog.isDef(options.maxSize) ?
this.maxSize_ = options.maxSize !== undefined ?
options.maxSize : ol.MAX_ATLAS_SIZE != -1 ?
ol.MAX_ATLAS_SIZE : goog.isDef(ol.WEBGL_MAX_TEXTURE_SIZE) ?
ol.MAX_ATLAS_SIZE : ol.WEBGL_MAX_TEXTURE_SIZE !== undefined ?
ol.WEBGL_MAX_TEXTURE_SIZE : 2048;
/**
@@ -65,7 +65,7 @@ ol.style.AtlasManager = function(opt_options) {
* @private
* @type {number}
*/
this.space_ = goog.isDef(options.space) ? options.space : 1;
this.space_ = options.space !== undefined ? options.space : 1;
/**
* @private