1var WINDOW_ONLOAD_QUEUE = new Array(); // onLoad event queue 2 3function addWindowOnLoadEvent(str) 4{ 5 WINDOW_ONLOAD_QUEUE.push(str); 6} 7 8function execWindowOnloadQueue() 9{ 10 while (WINDOW_ONLOAD_QUEUE.length) { 11 eval(WINDOW_ONLOAD_QUEUE.shift()); 12 } 13} 14 15// prevents events from bubbling (triggering events in parent DOM objects) 16function noEventBubble(e) 17{ 18 if (!e) 19 window.event.cancelBubble = true; 20 else if (e.stopPropagation) { 21 e.stopPropagation(); 22 } 23} 24 25// cross-browser event attachment 26function addEvent(obj, event, func) 27{ 28 if (obj.addEventListener) 29 obj.addEventListener(event, func, false); 30 else if (obj.attachEvent) 31 obj.attachEvent('on' + event, func); 32} 33
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.