Comparing version 0.2.2 to 0.2.3
@@ -89,3 +89,2 @@ 'use strict'; | ||
// extras | ||
@@ -215,4 +214,2 @@ const {Range} = require('./range.js'); | ||
get defaultView() { | ||
if (!this._customElements.define) | ||
this._customElements = new CustomElementRegistry(this); | ||
return new Proxy(globalThis, { | ||
@@ -222,3 +219,7 @@ /* c8 ignore start */ | ||
switch (name) { | ||
case 'document': | ||
return this; | ||
case 'customElements': | ||
if (!this._customElements.define) | ||
this._customElements = new CustomElementRegistry(this); | ||
return this._customElements; | ||
@@ -225,0 +226,0 @@ default: |
@@ -88,3 +88,2 @@ import {DOCUMENT_NODE, TEXT_NODE, DOM} from './constants.js'; | ||
// extras | ||
@@ -214,4 +213,2 @@ import {Range} from './range.js'; | ||
get defaultView() { | ||
if (!this._customElements.define) | ||
this._customElements = new CustomElementRegistry(this); | ||
return new Proxy(globalThis, { | ||
@@ -221,3 +218,7 @@ /* c8 ignore start */ | ||
switch (name) { | ||
case 'document': | ||
return this; | ||
case 'customElements': | ||
if (!this._customElements.define) | ||
this._customElements = new CustomElementRegistry(this); | ||
return this._customElements; | ||
@@ -224,0 +225,0 @@ default: |
{ | ||
"name": "linkedom", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "A triple-linked lists based DOM implementation", | ||
@@ -18,3 +18,3 @@ "main": "./cjs/index.js", | ||
"coveralls": "c8 report --reporter=text-lcov | coveralls", | ||
"test": "c8 node test/index.js" | ||
"test": "c8 node test/index.js && node test/benchmark-linkedom.js --dom --custom-elements" | ||
}, | ||
@@ -21,0 +21,0 @@ "keywords": [ |
1619111
7563