Renaming condition to clickOnly, and fixing docs

This commit is contained in:
ahocevar
2013-08-28 16:55:42 +02:00
parent 89bdd3bc2c
commit c47634b2ee
2 changed files with 3 additions and 3 deletions

View File

@@ -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;
};

View File

@@ -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.