Permalink
Browse files

feat(dom): add createTemplateElement

  • Loading branch information...
EisenbergEffect committed Aug 21, 2017
1 parent 6759618 commit a04ca40a1073392c35ff64b2a75bc6fe19cf88fa
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/dom.js
View
@@ -33,6 +33,10 @@ export const _DOM = {
createDocumentFragment(): DocumentFragment {
return document.createDocumentFragment();
},
createTemplateElement(): HTMLTemplateElement {
let template = document.createElement('template');
return _FEATURE.ensureHTMLTemplateElement(template);
},
createMutationObserver(callback: Function): MutationObserver {
return new (window.MutationObserver || window.WebKitMutationObserver)(callback);
},

0 comments on commit a04ca40

Please sign in to comment.