From a42e4d4f4e657013763175128f6f509e819b93c8 Mon Sep 17 00:00:00 2001 From: Marc Jansen Date: Tue, 22 Sep 2015 10:19:06 +0200 Subject: [PATCH] Remove goog.isDef from dragboxinteraction --- src/ol/interaction/dragboxinteraction.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ol/interaction/dragboxinteraction.js b/src/ol/interaction/dragboxinteraction.js index 9438dca7dc..afc0b4e6b3 100644 --- a/src/ol/interaction/dragboxinteraction.js +++ b/src/ol/interaction/dragboxinteraction.js @@ -91,13 +91,13 @@ ol.interaction.DragBox = function(opt_options) { handleUpEvent: ol.interaction.DragBox.handleUpEvent_ }); - var options = goog.isDef(opt_options) ? opt_options : {}; + var options = opt_options ? opt_options : {}; /** * @private * @type {ol.style.Style} */ - var style = goog.isDef(options.style) ? options.style : null; + var style = options.style ? options.style : null; /** * @type {ol.render.Box} @@ -115,7 +115,7 @@ ol.interaction.DragBox = function(opt_options) { * @private * @type {ol.events.ConditionType} */ - this.condition_ = goog.isDef(options.condition) ? + this.condition_ = options.condition ? options.condition : ol.events.condition.always; };