opt_options may not be defined, use options
Constructing an instance of `ol.interaction.DragPan` with no options should be possible, the reference to `opt_options` makes this throw an error when no options are passed.
This commit is contained in:
@@ -47,8 +47,8 @@ ol.interaction.DragPan = function(opt_options) {
|
|||||||
* @private
|
* @private
|
||||||
* @type {ol.events.ConditionType}
|
* @type {ol.events.ConditionType}
|
||||||
*/
|
*/
|
||||||
this.condition_ = goog.isDef(opt_options.condition) ?
|
this.condition_ = goog.isDef(options.condition) ?
|
||||||
opt_options.condition : ol.events.condition.noModifierKeys;
|
options.condition : ol.events.condition.noModifierKeys;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
|
|||||||
Reference in New Issue
Block a user