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
|
||||
});
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user