{"forks":[],"files":{"annotated.js":{"content":"var create = function(e,b,i){ // e: regex that contrains the tag name;\n // b: one argument of the 2nd function;\n // i: Counter\n\te = document.createElement(e(e)); // Create the element. e(e) for : /body/.exec(/body/) => ['body'] => 'body'\n\treturn function(){ // To append the childs\n\t\tfor (i=0;b=arguments[i++];) // List of childs\n\t\t\tb[0] ? // If it's a string (I know, bad idea)\n\t\t\t\te.innerHTML+=b // Write the text\n\t\t\t:\n\t\t\t\te.appendChild(b); // Else, append the element\n\t\treturn e; // Then, return the element\n\t}\n};","raw_url":"https://gist.github.com/raw/1009208/6a7d91b8edc7c4e4b6382bb046912d72ae1199f5/annotated.js","size":662,"filename":"annotated.js"},"index.js":{"content":"function(e,b,i){e=document.createElement(e(e));return function(){for(i=0;b=arguments[i++];)b[0]?e.innerHTML+=b:e.appendChild(b);return e}}","raw_url":"https://gist.github.com/raw/1009208/999c47f4cbe8cd17e88b10d0d98750351e5cf1b8/index.js","size":138,"filename":"index.js"},"test.html":{"content":" \n