Remove goog.isDef from imagelayer

This commit is contained in:
Marc Jansen
2015-09-23 21:00:02 +02:00
committed by Tim Schaub
parent b5ecc6e43c
commit 66ad8364e0

View File

@@ -19,7 +19,7 @@ goog.require('ol.layer.Layer');
* @api stable
*/
ol.layer.Image = function(opt_options) {
var options = goog.isDef(opt_options) ? opt_options : {};
var options = opt_options ? opt_options : {};
goog.base(this, /** @type {olx.layer.LayerOptions} */ (options));
};
goog.inherits(ol.layer.Image, ol.layer.Layer);