MCPcopy
hub / github.com/tmcw/big / ce

Function ce

lib/big.js:144–150  ·  view source on GitHub ↗

* Just save some typing when we refer to document.createElement * * @param {string} type * @param {string?} klass * @returns {HTMLElement}

(type, klass)

Source from the content-addressed store, hash-verified

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,

Callers 3

big.jsFile · 0.85
onPrintFunction · 0.85
onJumpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected