Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
Make travis happy
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbert committed Nov 10, 2016
1 parent 88aaf5d commit 329eff3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/registry.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,8 @@ const newHTMLElement = function HTMLElement() {
if (this.constructor) {
// Find the tagname of the constructor and create a new element with it
const tagName = customElements._constructors.get(this.constructor);
return _createElement(doc, tagName, undefined, false);
// Domino does not need a doc as a `this` parameter
return _createElement(null, tagName, undefined, false);
}
throw new Error('Unknown constructor. Did you call customElements.define()?');
};
Expand Down

0 comments on commit 329eff3

Please sign in to comment.