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