Go to the source code of this file.
|
function | filter (array, term) |
|
| extend (proto,{_initSource:function(){if(this.options.html &&$.isArray(this.options.source)){this.source=function(request, response){response(filter(this.options.source, request.term));};}else{initSource.call(this);}}, _renderItem:function(ul, item){return $("<li></li>").data("item.autocomplete", item).append($("<a></a>")[this.options.html?"html":"text"](item.label)).appendTo(ul);}}) |
|
extend |
( |
proto |
, |
|
|
{_initSource:function(){if(this.options.html &&$.isArray(this.options.source)){this.source=function(request, response){response(filter(this.options.source, request.term));};}else{initSource.call(this);}}, _renderItem:function(ul, item){return $("<li></li>").data("item.autocomplete", item).append($("<a></a>")[this.options.html?"html":"text"](item.label)).appendTo(ul);}} |
|
|
) |
| |
function filter |
( |
|
array, |
|
|
|
term |
|
) |
| |