vendor: 1,968 bytes, lines 1-63
1// Limit scope pollution from any deprecated API 2(function() { 3 4 var matched, browser; 5 6// Use of jQuery.browser is frowned upon. 7// More details: http://api.jquery.com/jQuery.browser 8// jQuery.uaMatch maintained for back-compat 9 jQuery.uaMatch = function( ua ) { 10 ua = ua.toLowerCase(); 11 12 var match = /(chrome)[ \/]([\w.]+)/.exec( ua ) || 13 /(webkit)[ \/]([\w.]+)/.exec( ua ) || 14 /(opera)(?:.*version|)[ \/]([\w.]+)/.exec( ua ) || 15 /(msie) ([\w.]+)/.exec( ua ) || 16 ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec( ua ) || 17 []; 18 19 return { 20 browser: match[ 1 ] || "", 21 version: match[ 2 ] || "0" 22 }; 23 }; 24 25 matched = jQuery.uaMatch( navigator.userAgent ); 26 browser = {}; 27 28 if ( matched.browser ) { 29 browser[ matched.browser ] = true; 30 browser.version = matched.version; 31 } 32 33// Chrome is Webkit, but Webkit is also Safari. 34 if ( browser.chrome ) { 35 browser.webkit = true; 36 } else if ( browser.webkit ) { 37 browser.safari = true; 38 } 39 40 jQuery.browser = browser; 41 42 jQuery.sub = function() { 43 function jQuerySub( selector, context ) { 44 return new jQuerySub.fn.init( selector, context ); 45 } 46 jQuery.extend( true, jQuerySub, this ); 47 jQuerySub.superclass = this; 48 jQuerySub.fn = jQuerySub.prototype = this(); 49 jQuerySub.fn.constructor = jQuerySub; 50 jQuerySub.sub = this.sub; 51 jQuerySub.fn.init = function init( selector, context ) { 52 if ( context && context instanceof jQuery && !(context instanceof jQuerySub) ) { 53 context = jQuerySub( context ); 54 } 55 56 return jQuery.fn.init.call( this, selector, context, rootjQuerySub ); 57 }; 58 jQuerySub.fn.init.prototype = jQuerySub.fn; 59 var rootjQuerySub = jQuerySub(document); 60 return jQuerySub; 61 }; 62 63})();
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.