Remove goog.isDef from controls (-278 B)

This commit is contained in:
Tim Schaub
2015-09-18 18:28:47 +09:00
parent 007194a18f
commit a096ec5bf7
11 changed files with 88 additions and 97 deletions

View File

@@ -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);
}