template/static/scripts/bootstrap-typeahead.js
function (data) { 
            var items;
            
            this.ajaxToggleLoadClass(false);

            if (!this.ajax.xhr) return;
            
            if (this.ajax.preProcess) {
                data = this.ajax.preProcess(data);
            }

            // Save for selection retreival
            this.ajax.data = data;

            items = this.grepper(this.ajax.data);
    
            if (!items || !items.length) {
                return this.shown ? this.hide() : this;
            }

            this.ajax.xhr = null;

            return this.render(items.slice(0, this.options.items)).show();
        }
function (data) { 
            var items;
            
            this.ajaxToggleLoadClass(false);

            if (!this.ajax.xhr) return;
            
            if (this.ajax.preProcess) {
                data = this.ajax.preProcess(data);
            }

            // Save for selection retreival
            this.ajax.data = data;

            items = this.grepper(this.ajax.data);
    
            if (!items || !items.length) {
                return this.shown ? this.hide() : this;
            }

            this.ajax.xhr = null;

            return this.render(items.slice(0, this.options.items)).show();
        }
function ( data ) { var items ; this . ajaxToggleLoadClass ( false ) ; if ( ! this . ajax . xhr ) return ; if ( this . ajax . preProcess ) { data = this . ajax . preProcess ( data ) ; } // Save for selection retreival this . ajax . data = data ; items = this . grepper ( this . ajax . data ) ; if ( ! items || ! items . length ) { return this . shown ? this . hide ( ) : this ; } this . ajax . xhr = null ; return this . render ( items . slice ( 0 , this . options . items ) ) . show ( ) ; }
------------------------------------------------------------------  Perform a lookup in the AJAX results
------------------------------------------------------------------ Perform a lookup in the AJAX results