1var domIsReady = (function(domIsReady) { 2 var isBrowserIeOrNot = function() { 3 return (!document.attachEvent || typeof document.attachEvent === "undefined" ? 'not-ie' : 'ie'); 4 } 5 6 domIsReady = function(callback) { 7 if(callback && typeof callback === 'function'){ 8 if(isBrowserIeOrNot() !== 'ie') { 9 document.addEventListener("DOMContentLoaded", function() { 10 return callback(); 11 }); 12 } else { 13 document.attachEvent("onreadystatechange", function() { 14 if(document.readyState === "complete") { 15 return callback(); 16 } 17 }); 18 } 19 } else { 20 console.error('The callback is not a function!'); 21 } 22 } 23 24 return domIsReady; 25 })(domIsReady || {});
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.