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:
Paul Spencer
2014-12-05 08:30:14 -05:00
parent 3fb539460c
commit 12ddc7da57

View File

@@ -47,8 +47,8 @@ ol.interaction.DragPan = function(opt_options) {
* @private
* @type {ol.events.ConditionType}
*/
this.condition_ = goog.isDef(opt_options.condition) ?
opt_options.condition : ol.events.condition.noModifierKeys;
this.condition_ = goog.isDef(options.condition) ?
options.condition : ol.events.condition.noModifierKeys;
/**
* @private