Remove goog.isDef from controls (-278 B)
This commit is contained in:
@@ -45,7 +45,7 @@ ol.control.Control = function(options) {
|
||||
* @protected
|
||||
* @type {Element}
|
||||
*/
|
||||
this.element = goog.isDef(options.element) ? options.element : null;
|
||||
this.element = options.element ? options.element : null;
|
||||
|
||||
/**
|
||||
* @private
|
||||
@@ -68,9 +68,9 @@ ol.control.Control = function(options) {
|
||||
/**
|
||||
* @type {function(ol.MapEvent)}
|
||||
*/
|
||||
this.render = goog.isDef(options.render) ? options.render : goog.nullFunction;
|
||||
this.render = options.render ? options.render : goog.nullFunction;
|
||||
|
||||
if (goog.isDef(options.target)) {
|
||||
if (options.target) {
|
||||
this.setTarget(options.target);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user