Skip to content

Commit

Permalink
feat(dom): add createTemplateElement
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Aug 21, 2017
1 parent 6759618 commit a04ca40
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
Expand Down

0 comments on commit a04ca40

Please sign in to comment.