##// END OF EJS Templates
Added tag v1.1.0 for changeset 1a0018655d1c
Added tag v1.1.0 for changeset 1a0018655d1c

File last commit:

r63:1a0018655d1c v1.1.0 default
r64:3f27d1084ced default
Show More
DjxFragment.ts
6 lines | 343 B | video/mp2t | TypeScriptLexer
/** Special functional component used to create a document fragment */
export function DjxFragment({children}: {children?: Node | Node[]}){
const fragment = document.createDocumentFragment();
if (children)
(children instanceof Array ? children : [children]).forEach(child => fragment.appendChild(child));
return fragment;
}