lib/suggestion-list-element.js
// item or cancels the view if none has been selected.
item or cancels the view if none has been selected.
item or cancels the view if none has been selected .
confirmSelectionIfNonDefault (event) {
    if (!this.model.isActive()) { return }
    if (this.nonDefaultIndex) {
      return this.confirmSelection()
    } else {
      this.model.cancel()
      return event.abortKeyBinding()
    }
  }
confirmSelectionIfNonDefault ( event ) { if ( ! this . model . isActive ( ) ) { return } if ( this . nonDefaultIndex ) { return this . confirmSelection ( ) } else { this . model . cancel ( ) return event . abortKeyBinding ( ) } }
item or cancels the view if none has been selected.
item or cancels the view if none has been selected .