dist/toolkit.js
function() {
        if (!this.shadow) {
            return;
        }

        var term = this.input.val(),
            termLower = term.toLowerCase(),
            value = '';

        if (this.cache[termLower] && this.cache[termLower][0]) {
            var title = this.cache[termLower][0].title;

            if (title.toLowerCase().indexOf(termLower) === 0) {
                value = term + title.substr(term.length, (title.length - term.length));
            }
        }

        this.shadow.val(value);
    }
function() {
        if (!this.shadow) {
            return;
        }

        var term = this.input.val(),
            termLower = term.toLowerCase(),
            value = '';

        if (this.cache[termLower] && this.cache[termLower][0]) {
            var title = this.cache[termLower][0].title;

            if (title.toLowerCase().indexOf(termLower) === 0) {
                value = term + title.substr(term.length, (title.length - term.length));
            }
        }

        this.shadow.val(value);
    }
function ( ) { if ( ! this . shadow ) { return ; } var term = this . input . val ( ) , termLower = term . toLowerCase ( ) , value = '' ; if ( this . cache [ termLower ] && this . cache [ termLower ] [ 0 ] ) { var title = this . cache [ termLower ] [ 0 ] . title ; if ( title . toLowerCase ( ) . indexOf ( termLower ) === 0 ) { value = term + title . substr ( term . length , ( title . length - term . length ) ) ; } } this . shadow . val ( value ) ; }
Monitor the current input term to determine the shadow text.
Shadow text will reference the term cache.

@private
Monitor the current input term to determine the shadow text . Shadow text will reference the term cache .