|
||||
File indexing completed on 2025-01-18 09:14:37
0001 // basic DOM functions 0002 // based on http://blog.adtile.me/2014/01/16/a-dive-into-plain-javascript/ 0003 var q = document.querySelectorAll.bind(document); 0004 Element.prototype.on = Element.prototype.addEventListener; 0005 var createEl = function(el, cls, text){ 0006 var x = document.createElement(el); 0007 x.setAttribute("class",cls); 0008 if(text) { 0009 var t = document.createTextNode(text); 0010 x.appendChild(t); 0011 } 0012 return x; 0013 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |