Import events conditions explicitly

This commit is contained in:
Marc Jansen
2018-02-05 18:22:42 +01:00
parent 1c8e60487c
commit 6e764a20b3
16 changed files with 54 additions and 69 deletions
+2 -3
View File
@@ -3,7 +3,7 @@
*/
import {inherits} from '../index.js';
import EventType from '../events/EventType.js';
import _ol_events_condition_ from '../events/condition.js';
import {targetNotEditable} from '../events/condition.js';
import Interaction from '../interaction/Interaction.js';
/**
@@ -35,8 +35,7 @@ const KeyboardZoom = function(opt_options) {
* @private
* @type {ol.EventsConditionType}
*/
this.condition_ = options.condition ? options.condition :
_ol_events_condition_.targetNotEditable;
this.condition_ = options.condition ? options.condition : targetNotEditable;
/**
* @private