##// END OF EJS Templates
@on decorator registers handlers directry on domNode, added support to multiple events in one decorator...
@on decorator registers handlers directry on domNode, added support to multiple events in one decorator fixed isRendition failing on null objects

File last commit:

r79:e5bb5e80ce96 v1.2.3 default
r85:35a7b6319ebe v1.2.6 default
Show More
DjxFragment.ts
6 lines | 348 B | video/mp2t | TypeScriptLexer
/ djx / src / main / ts / tsx / DjxFragment.ts
/** 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;
}