function onNewText() {
		var value = this.value;
		if (value.length < _self.minLength) {
			return;
		}
		if (value in cache) {
			renderList(cache[value], value);
			return;
		}
		deferredGet(value)
		.done(function(list){
			LOG.info('list', list);
			cache[value] = list;
			renderList(list, value);
		});
	}
/**
	 * Make an AJAX call when new text is in the input.
	 *
	 * @note keypress is fired before the char is added, keyup seem to work better.
	 */
Make an AJAX call when new text is in the input.
@note keypress is fired before the char is added, keyup seem to work better.
Make an AJAX call when new text is in the input . @note keypress is fired before the char is added keyup seem to work better .
function onNewText() {
		var value = this.value;
		if (value.length < _self.minLength) {
			return;
		}
		if (value in cache) {
			renderList(cache[value], value);
			return;
		}
		deferredGet(value)
		.done(function(list){
			LOG.info('list', list);
			cache[value] = list;
			renderList(list, value);
		});
	}
function onNewText ( ) { var value = this . value ; if ( value . length < _self . minLength ) { return ; } if ( value in cache ) { renderList ( cache [ value ] , value ) ; return ; } deferredGet ( value ) . done ( function ( list ) { LOG . info ( 'list' , list ) ; cache [ value ] = list ; renderList ( list , value ) ; } ) ; }
Make an AJAX call when new text is in the input.
Make an AJAX call when new text is in the input .