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

@@ -57,7 +57,7 @@ ol.source.Source = function(options) {
* @private
* @type {Array.<ol.Attribution>}
*/
this.attributions_ = goog.isDef(options.attributions) ?
this.attributions_ = options.attributions !== undefined ?
options.attributions : null;
/**
@@ -70,14 +70,14 @@ ol.source.Source = function(options) {
* @private
* @type {ol.source.State}
*/
this.state_ = goog.isDef(options.state) ?
this.state_ = options.state !== undefined ?
options.state : ol.source.State.READY;
/**
* @private
* @type {boolean}
*/
this.wrapX_ = goog.isDef(options.wrapX) ? options.wrapX : false;
this.wrapX_ = options.wrapX !== undefined ? options.wrapX : false;
};
goog.inherits(ol.source.Source, ol.Object);