From 12ddc7da57b8ff9e00b33a9614eeebe8db3ca68e Mon Sep 17 00:00:00 2001 From: Paul Spencer Date: Fri, 5 Dec 2014 08:30:14 -0500 Subject: [PATCH] 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. --- src/ol/interaction/dragpaninteraction.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ol/interaction/dragpaninteraction.js b/src/ol/interaction/dragpaninteraction.js index ec90c4623b..dd9c4754fa 100644 --- a/src/ol/interaction/dragpaninteraction.js +++ b/src/ol/interaction/dragpaninteraction.js @@ -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