* Just save some typing when we refer to document.createElement * * @param {string} type * @param {string?} klass * @returns {HTMLElement}
(type, klass)
| 142 | * @returns {HTMLElement} |
| 143 | */ |
| 144 | function ce(type, klass) { |
| 145 | var element = document.createElement(type); |
| 146 | if (klass) { |
| 147 | element.className = klass; |
| 148 | } |
| 149 | return element; |
| 150 | } |
| 151 | |
| 152 | /** |
| 153 | * Turn a NodeList, returned by querySelectorAll or another DOM method, |