@webqit/oohtml 4.1.8 → 4.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +2 -2
- package/dist/html-imports.js +1 -1
- package/dist/html-imports.js.map +2 -2
- package/dist/main.js +1 -1
- package/dist/main.js.map +2 -2
- package/dist/main.lite.js +1 -1
- package/dist/main.lite.js.map +2 -2
- package/package.json +1 -1
- package/src/html-imports/_HTMLImportElement.js +1 -1
- package/test/index.js +1 -1
- package/test/scoped-js.test.js +3 -2
package/package.json
CHANGED
|
@@ -126,7 +126,7 @@ export default function() {
|
|
|
126
126
|
priv.disconnectedCallback = () => {
|
|
127
127
|
priv.hydrationImportRequest?.abort();
|
|
128
128
|
priv.hydrationImportRequest = null;
|
|
129
|
-
if ( priv.anchorNode
|
|
129
|
+
if ( priv.anchorNode?.isConnected ) return;
|
|
130
130
|
priv.moduleRefRealtime?.disconnect();
|
|
131
131
|
priv.moduleRefRealtime = null;
|
|
132
132
|
};
|
package/test/index.js
CHANGED
|
@@ -27,8 +27,8 @@ export function createDocumentPrefixed( prefix, head = '', body = '', callback =
|
|
|
27
27
|
<head>
|
|
28
28
|
<meta name="$q-compiler-url" content="../quantum-js/dist/compiler.js">
|
|
29
29
|
${ prefix ? `<meta name="webqit" content="prefix=${ prefix };">` : `` }
|
|
30
|
-
<script ssr src="/dist/main.lite.js"></script>
|
|
31
30
|
${ head }
|
|
31
|
+
<script ssr src="/dist/main.lite.js"></script>
|
|
32
32
|
</head>
|
|
33
33
|
<body>${ body }</body>
|
|
34
34
|
</html>`;
|
package/test/scoped-js.test.js
CHANGED
|
@@ -10,7 +10,8 @@ describe(`Test: Scoped JS`, function() {
|
|
|
10
10
|
describe(`Scripts`, function() {
|
|
11
11
|
|
|
12
12
|
it(`Should do basic observe`, async function() {
|
|
13
|
-
const head =
|
|
13
|
+
const head = ``;
|
|
14
|
+
const body = `
|
|
14
15
|
<h1>Hello World!</h1>
|
|
15
16
|
<script scoped quantum>
|
|
16
17
|
testRecords.push( this );
|
|
@@ -19,7 +20,7 @@ describe(`Test: Scoped JS`, function() {
|
|
|
19
20
|
|
|
20
21
|
const window = createDocument( head, body );
|
|
21
22
|
window.testRecords = [];
|
|
22
|
-
await delay(
|
|
23
|
+
await delay( 500 ); // Takes time to dynamically load Reflex compiler
|
|
23
24
|
|
|
24
25
|
expect( window.testRecords ).to.have.length( 1 );
|
|
25
26
|
expect( window.testRecords[ 0 ] ).to.eql( window.document.body );
|