Inline simple goog.isDef() calls

This commit is contained in:
Tim Schaub
2015-09-27 10:34:44 -06:00
parent a86c270f6a
commit e3951fa3c6
45 changed files with 172 additions and 170 deletions

View File

@@ -55,7 +55,7 @@ ol.MapEvent = function(type, map, opt_frameState) {
* @type {?olx.FrameState}
* @api
*/
this.frameState = goog.isDef(opt_frameState) ? opt_frameState : null;
this.frameState = opt_frameState !== undefined ? opt_frameState : null;
};
goog.inherits(ol.MapEvent, goog.events.Event);