(/* el, ... */)
| 60 | return spans; |
| 61 | }; |
| 62 | var append = function(/* el, ... */) { |
| 63 | var el = Array.prototype.shift.call(arguments); |
| 64 | for (var a=0; a<arguments.length; a++) |
| 65 | if (arguments[a].constructor == Array) |
| 66 | append.apply(this, [el].concat(arguments[a])); |
| 67 | else |
| 68 | el.appendChild(arguments[a]); |
| 69 | return el; |
| 70 | }; |
| 71 | var prepend = function(el, child) { |
| 72 | el.insertBefore(child, el.firstChild); |
| 73 | return el; |
no test coverage detected