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

Commit 329eff3

Browse files
committed
Make travis happy
1 parent 88aaf5d commit 329eff3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/registry.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,8 @@ const newHTMLElement = function HTMLElement() {
226226
if (this.constructor) {
227227
// Find the tagname of the constructor and create a new element with it
228228
const tagName = customElements._constructors.get(this.constructor);
229-
return _createElement(doc, tagName, undefined, false);
229+
// Domino does not need a doc as a `this` parameter
230+
return _createElement(null, tagName, undefined, false);
230231
}
231232
throw new Error('Unknown constructor. Did you call customElements.define()?');
232233
};

0 commit comments

Comments
 (0)