From e59109e80720aa0a3a460fce360ff8ab110dec2e Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Thu, 11 Jan 2018 13:52:27 +0100 Subject: [PATCH] Rename _ol_interaction_KeyboardZoom_ to KeyboardZoom --- src/ol/interaction.js | 4 ++-- src/ol/interaction/KeyboardZoom.js | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/ol/interaction.js b/src/ol/interaction.js index 6693026fa9..c8c135db32 100644 --- a/src/ol/interaction.js +++ b/src/ol/interaction.js @@ -8,7 +8,7 @@ import DragPan from './interaction/DragPan.js'; import DragRotate from './interaction/DragRotate.js'; import DragZoom from './interaction/DragZoom.js'; import KeyboardPan from './interaction/KeyboardPan.js'; -import _ol_interaction_KeyboardZoom_ from './interaction/KeyboardZoom.js'; +import KeyboardZoom from './interaction/KeyboardZoom.js'; import MouseWheelZoom from './interaction/MouseWheelZoom.js'; import PinchRotate from './interaction/PinchRotate.js'; import PinchZoom from './interaction/PinchZoom.js'; @@ -84,7 +84,7 @@ export function defaults(opt_options) { var keyboard = options.keyboard !== undefined ? options.keyboard : true; if (keyboard) { interactions.push(new KeyboardPan()); - interactions.push(new _ol_interaction_KeyboardZoom_({ + interactions.push(new KeyboardZoom({ delta: options.zoomDelta, duration: options.zoomDuration })); diff --git a/src/ol/interaction/KeyboardZoom.js b/src/ol/interaction/KeyboardZoom.js index b67f3652ae..889a27ddfe 100644 --- a/src/ol/interaction/KeyboardZoom.js +++ b/src/ol/interaction/KeyboardZoom.js @@ -23,10 +23,10 @@ import Interaction from '../interaction/Interaction.js'; * @extends {ol.interaction.Interaction} * @api */ -var _ol_interaction_KeyboardZoom_ = function(opt_options) { +var KeyboardZoom = function(opt_options) { Interaction.call(this, { - handleEvent: _ol_interaction_KeyboardZoom_.handleEvent + handleEvent: KeyboardZoom.handleEvent }); var options = opt_options ? opt_options : {}; @@ -52,7 +52,7 @@ var _ol_interaction_KeyboardZoom_ = function(opt_options) { }; -inherits(_ol_interaction_KeyboardZoom_, Interaction); +inherits(KeyboardZoom, Interaction); /** @@ -64,7 +64,7 @@ inherits(_ol_interaction_KeyboardZoom_, Interaction); * @this {ol.interaction.KeyboardZoom} * @api */ -_ol_interaction_KeyboardZoom_.handleEvent = function(mapBrowserEvent) { +KeyboardZoom.handleEvent = function(mapBrowserEvent) { var stopEvent = false; if (mapBrowserEvent.type == EventType.KEYDOWN || mapBrowserEvent.type == EventType.KEYPRESS) { @@ -83,4 +83,4 @@ _ol_interaction_KeyboardZoom_.handleEvent = function(mapBrowserEvent) { } return !stopEvent; }; -export default _ol_interaction_KeyboardZoom_; +export default KeyboardZoom;