Renaming condition to clickOnly, and fixing docs
This commit is contained in:
1 parent
89bdd3bc2c
commit
c47634b2ee
2 files changed
+3
-3
No files matched your search
@@ -44,9 +44,9 @@ ol.interaction.condition.always = goog.functions.TRUE;
|
||||
|
||||
/**
|
||||
* @param {goog.events.BrowserEvent} browserEvent Browser event.
|
||||
* @return {boolean} True if only the shift key is pressed.
|
||||
* @return {boolean} True only the event is a click event.
|
||||
*/
|
||||
ol.interaction.condition.clickEventOnly = function(browserEvent) {
|
||||
ol.interaction.condition.clickOnly = function(browserEvent) {
|
||||
return browserEvent.type == goog.events.EventType.CLICK;
|
||||
};
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ ol.interaction.Select = function(opt_options) {
|
||||
* @type {ol.interaction.ConditionType}
|
||||
*/
|
||||
this.condition_ = goog.isDef(options.condition) ?
|
||||
options.condition : ol.interaction.condition.clickEventOnly;
|
||||
options.condition : ol.interaction.condition.clickOnly;
|
||||
|
||||
/**
|
||||
* Mapping between original features and cloned features on selection layers.
|
||||
|
||||
Reference in new issue
Block a user