nl_tokens: single
pl_tokens: function ( data , initial , noHighlightUpdate ) { var selected = 0 , self = this , showSearchInput = true ; // find the selected element in the result list this . findHighlightableChoices ( ) . each2 ( function ( i , elm ) { if ( equal ( <mask> . id ( elm . data ( "select2-data" ) ) , self . opts . element . val ( ) ) ) { selected = i ; return false ; } } ) ; // and highlight it if ( noHighlightUpdate !== false ) { if ( initial === true && selected >= 0 ) { this . highlight ( selected ) ; } else { this . highlight ( 0 ) ; } } // hide the search box if this is the first we got the results and there are enough of them for search if ( initial === true ) { var min = this . opts . minimumResultsForSearch ; if ( min >= 0 ) { this . showSearch ( countResults ( data . results ) >= min ) ; } } }