1 2 3/*=============================== 4/components/com_virtuemart/assets/js/jquery.ui.autocomplete.html.js 5================================================================================*/; 6/* 7 * jQuery UI Autocomplete HTML Extension 8 * 9 * Copyright 2010, Scott González (http://scottgonzalez.com) 10 * Dual licensed under the MIT or GPL Version 2 licenses. 11 * 12 * http://github.com/scottgonzalez/jquery-ui-extensions 13 */ 14(function( $ ) { 15 16var proto = $.ui.autocomplete.prototype, 17 initSource = proto._initSource; 18 19function filter( array, term ) { 20 var matcher = new RegExp( $.ui.autocomplete.escapeRegex(term), "i" ); 21 return $.grep( array, function(value) { 22 return matcher.test( $( "<div>" ).html( value.label || value.value || value ).text() ); 23 }); 24} 25 26$.extend( proto, { 27 _initSource: function() { 28 if ( this.options.html && $.isArray(this.options.source) ) { 29 this.source = function( request, response ) { 30 response( filter( this.options.source, request.term ) ); 31 }; 32 } else { 33 initSource.call( this ); 34 } 35 }, 36 37 _renderItem: function( ul, item) { 38 return $( "<li></li>" ) 39 .data( "item.autocomplete", item ) 40 .append( $( "<a></a>" )[ this.options.html ? "html" : "text" ]( item.label ) ) 41 .appendTo( ul ); 42 } 43}); 44 45})( jQuery ); 46 47 48 49/*=============================== 50/components/com_virtuemart/assets/js/jquery.noconflict.js 51================================================================================*/; 52jQuery.noConflict();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.