1//koowa.kquery.js 2/** 3 * Go through all loaded jQuery instances and assign the first one on the page with a version >=1.8.0 to kQuery 4 */ 5if (typeof window.kQuery === 'undefined' && typeof window.jQuery !== 'undefined') { 6 var kQuery, 7 tmp, 8 version, 9 // Save current global references 10 old_$ = window.$, 11 old_jQuery = window.jQuery; 12 13 while (typeof window.jQuery !== 'undefined') { 14 version = window.jQuery.fn.jquery.split('.'); 15 tmp = window.jQuery.noConflict(true); 16 17 // Do not use versions older than 1.8 18 if (!(version[0] == '1' && parseInt(version[1], 10) < 8)) { 19 kQuery = tmp; 20 break; 21 } 22 } 23 24 // Revert references 25 window.$ = old_$; 26 window.jQuery = old_jQuery; 27 28 window.kQuery = kQuery; 29} 30
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.