##// END OF EJS Templates
Added tag v1.5.0 for changeset e9a9ed6d7647
Added tag v1.5.0 for changeset e9a9ed6d7647

File last commit:

r112:2ccfaae984e9 v1.4.4 default
r115:b4bb7c903a74 default
Show More
DjxFragment.ts
10 lines | 524 B | video/mp2t | TypeScriptLexer
/ djx / src / main / ts / tsx / DjxFragment.ts
cin
fixed NlsBundle locale package loading...
r112 import { FunctionRendition } from "./FunctionRendition";
import { getItemDom } from "./render";
cin
Converted to subproject djx, removed dojo-typings
r65 /** Special functional component used to create a document fragment */
cin
fixed NlsBundle locale package loading...
r112 export const DjxFragment = ({ children }: { children?: unknown | unknown[] }) =>
new FunctionRendition(() => {
const fragment = document.createDocumentFragment();
if (children)
(children instanceof Array ? children : [children]).map(getItemDom).forEach(child => fragment.appendChild(child));
return fragment;
});