Remove goog.isDef from mousewheelzoominteraction
This commit is contained in:
@@ -25,7 +25,7 @@ ol.interaction.MouseWheelZoom = function(opt_options) {
|
|||||||
handleEvent: ol.interaction.MouseWheelZoom.handleEvent
|
handleEvent: ol.interaction.MouseWheelZoom.handleEvent
|
||||||
});
|
});
|
||||||
|
|
||||||
var options = goog.isDef(opt_options) ? opt_options : {};
|
var options = ol.isDef(opt_options) ? opt_options : {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
@@ -37,14 +37,15 @@ ol.interaction.MouseWheelZoom = function(opt_options) {
|
|||||||
* @private
|
* @private
|
||||||
* @type {number}
|
* @type {number}
|
||||||
*/
|
*/
|
||||||
this.duration_ = goog.isDef(options.duration) ? options.duration : 250;
|
this.duration_ = ol.isDef(options.duration) ?
|
||||||
|
/** @type {number} */ (options.duration) : 250;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
*/
|
*/
|
||||||
this.useAnchor_ = goog.isDef(options.useAnchor) ?
|
this.useAnchor_ = ol.isDef(options.useAnchor) ?
|
||||||
options.useAnchor : true;
|
/** @type {boolean} */ (options.useAnchor) : true;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
@@ -91,7 +92,7 @@ ol.interaction.MouseWheelZoom.handleEvent = function(mapBrowserEvent) {
|
|||||||
|
|
||||||
this.delta_ += mouseWheelEvent.deltaY;
|
this.delta_ += mouseWheelEvent.deltaY;
|
||||||
|
|
||||||
if (!goog.isDef(this.startTime_)) {
|
if (!ol.isDef(this.startTime_)) {
|
||||||
this.startTime_ = goog.now();
|
this.startTime_ = goog.now();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user