1// DOM object 2// EXAMPLE: 3// DOM.aE(window, "load", funkcia, false); 4 5var DOM = { 6 gI : function (el) { 7 return document.getElementById(el); 8 }, 9 cT : function(txt) { 10 return document.createTextNode(txt); 11 }, 12 cE : function (el) { 13 return document.createElement(el); 14 }, 15 aC : function (p,c) { 16 return p.appendChild(c); 17 }, 18 aE : function (elm,evtType,evtFn,set) { 19 if (document.addEventListener) { 20 //if ((elm == window) && window.opera) elm = document; 21 elm.addEventListener(evtType, evtFn, set); 22 } else { 23 elm.attachEvent('on' + evtType, evtFn); 24 } 25 }, 26 rE : function (elm,evtType,evtFn,set) { 27 if (document.addEventListener) { 28 //if ((elm == window) && window.opera) elm = document; 29 elm.removeEventListener(evtType,evtFn,set); 30 } else { 31 elm.detachEvent('on' + evtType,evtFn); 32 } 33 }, 34 fE : function(e) { 35 if (typeof e == 'undefined') e = window.event; 36 return e; 37 } 38}
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.