Remove goog.isDef from mousewheelzoominteraction

This commit is contained in:
Marc Jansen
2015-09-23 20:13:25 +02:00
committed by Tim Schaub
parent 20b694b8c1
commit 10d4aeb1c6

View File

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