From 10d4aeb1c6b9a0b4c7c67d6c284f5abb7a7802cf Mon Sep 17 00:00:00 2001 From: Marc Jansen Date: Wed, 23 Sep 2015 20:13:25 +0200 Subject: [PATCH] Remove goog.isDef from mousewheelzoominteraction --- src/ol/interaction/mousewheelzoominteraction.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/ol/interaction/mousewheelzoominteraction.js b/src/ol/interaction/mousewheelzoominteraction.js index c9d1d6bb74..6b7d75d651 100644 --- a/src/ol/interaction/mousewheelzoominteraction.js +++ b/src/ol/interaction/mousewheelzoominteraction.js @@ -25,7 +25,7 @@ ol.interaction.MouseWheelZoom = function(opt_options) { handleEvent: ol.interaction.MouseWheelZoom.handleEvent }); - var options = goog.isDef(opt_options) ? opt_options : {}; + var options = ol.isDef(opt_options) ? opt_options : {}; /** * @private @@ -37,14 +37,15 @@ ol.interaction.MouseWheelZoom = function(opt_options) { * @private * @type {number} */ - this.duration_ = goog.isDef(options.duration) ? options.duration : 250; + this.duration_ = ol.isDef(options.duration) ? + /** @type {number} */ (options.duration) : 250; /** * @private * @type {boolean} */ - this.useAnchor_ = goog.isDef(options.useAnchor) ? - options.useAnchor : true; + this.useAnchor_ = ol.isDef(options.useAnchor) ? + /** @type {boolean} */ (options.useAnchor) : true; /** * @private @@ -91,7 +92,7 @@ ol.interaction.MouseWheelZoom.handleEvent = function(mapBrowserEvent) { this.delta_ += mouseWheelEvent.deltaY; - if (!goog.isDef(this.startTime_)) { + if (!ol.isDef(this.startTime_)) { this.startTime_ = goog.now(); }