Renaming condition to clickOnly, and fixing docs
This commit is contained in:
@@ -44,9 +44,9 @@ ol.interaction.condition.always = goog.functions.TRUE;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {goog.events.BrowserEvent} browserEvent Browser event.
|
* @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;
|
return browserEvent.type == goog.events.EventType.CLICK;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ ol.interaction.Select = function(opt_options) {
|
|||||||
* @type {ol.interaction.ConditionType}
|
* @type {ol.interaction.ConditionType}
|
||||||
*/
|
*/
|
||||||
this.condition_ = goog.isDef(options.condition) ?
|
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.
|
* Mapping between original features and cloned features on selection layers.
|
||||||
|
|||||||
Reference in New Issue
Block a user