@yannosay/sinth 1.12.3 → 1.12.5
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/dist/core/cli-compiler.js +2 -1
- package/dist/core/compiler.js +48 -17
- package/dist/core/parser.js +6 -8
- package/dist/core/runtime/helpers.js +31 -15
- package/package.json +1 -1
|
@@ -52,7 +52,7 @@ function compileFile(filePath, opts) {
|
|
|
52
52
|
const file = (0, resolver_1.parseFile)(absPath);
|
|
53
53
|
const cfg = { projectRoot: opts.projectRoot, libraryPaths: opts.libraryPaths };
|
|
54
54
|
const { allDefs, customEls, cssLinks, jsLinks } = (0, resolver_1.resolveImports)(file, cfg);
|
|
55
|
-
const hash = (0, utils_1.fnv1a)(absPath);
|
|
55
|
+
const hash = "_" + (0, utils_1.fnv1a)(absPath);
|
|
56
56
|
const allVarDecls = file.varDecls;
|
|
57
57
|
const functionDefs = file.functions;
|
|
58
58
|
const fnLocalVarNames = new Set();
|
|
@@ -431,6 +431,7 @@ function compileFile(filePath, opts) {
|
|
|
431
431
|
functionsJS: compiledFunctions,
|
|
432
432
|
namespace: hash,
|
|
433
433
|
declaredVars: ctx.declaredVars,
|
|
434
|
+
initLogic: file.initLogic,
|
|
434
435
|
});
|
|
435
436
|
const runtimeJS = typeof runtimeResult === 'string' ? runtimeResult : runtimeResult.page;
|
|
436
437
|
const sharedJS = typeof runtimeResult === 'string' ? null : runtimeResult.shared;
|
package/dist/core/compiler.js
CHANGED
|
@@ -104,10 +104,10 @@ function inlineFunctionBody(fnDef, args, ctx) {
|
|
|
104
104
|
for (const c of fnDef.body) {
|
|
105
105
|
const substituted = subChild(c);
|
|
106
106
|
if (substituted.kind === "assign_stmt") {
|
|
107
|
-
statements.push((0, expr_1.compileExprToJS)(substituted.expression, ctx.loopVars, ctx.namespace, ctx.declaredVars)
|
|
107
|
+
statements.push((0, expr_1.compileExprToJS)(substituted.expression, ctx.loopVars, ctx.namespace, ctx.declaredVars));
|
|
108
108
|
}
|
|
109
109
|
else if (substituted.kind === "expr") {
|
|
110
|
-
statements.push((0, expr_1.compileExprToJS)(substituted.expression, ctx.loopVars, ctx.namespace, ctx.declaredVars)
|
|
110
|
+
statements.push((0, expr_1.compileExprToJS)(substituted.expression, ctx.loopVars, ctx.namespace, ctx.declaredVars));
|
|
111
111
|
}
|
|
112
112
|
else if (substituted.kind === "if") {
|
|
113
113
|
statements.push((0, expr_1.compileIfToJS)(substituted, ctx.loopVars, ctx.namespace, ctx.declaredVars));
|
|
@@ -127,13 +127,13 @@ function inlineFunctionBody(fnDef, args, ctx) {
|
|
|
127
127
|
const bodyStmts = fl.body.map((bc) => {
|
|
128
128
|
const s = subChild(bc);
|
|
129
129
|
if (s.kind === "assign_stmt")
|
|
130
|
-
return (0, expr_1.compileExprToJS)(s.expression, innerLoopVars, ctx.namespace, ctx.declaredVars)
|
|
130
|
+
return (0, expr_1.compileExprToJS)(s.expression, innerLoopVars, ctx.namespace, ctx.declaredVars);
|
|
131
131
|
if (s.kind === "if")
|
|
132
132
|
return (0, expr_1.compileIfToJS)(s, innerLoopVars, ctx.namespace, ctx.declaredVars);
|
|
133
133
|
if (s.kind === "expr")
|
|
134
|
-
return (0, expr_1.compileExprToJS)(s.expression, innerLoopVars, ctx.namespace, ctx.declaredVars)
|
|
134
|
+
return (0, expr_1.compileExprToJS)(s.expression, innerLoopVars, ctx.namespace, ctx.declaredVars);
|
|
135
135
|
return "";
|
|
136
|
-
}).filter(Boolean).join(" ");
|
|
136
|
+
}).filter(Boolean).join("; ");
|
|
137
137
|
const nsArrayVar = (ctx.namespace && ctx.declaredVars && ctx.declaredVars.has(fl.arrayVar)) ? ctx.namespace + "_" + fl.arrayVar : fl.arrayVar;
|
|
138
138
|
if (fl.indexVar) {
|
|
139
139
|
const alreadyDeclared = fnDef.body.some((bc) => bc.kind === "var" && bc.name === fl.indexVar);
|
|
@@ -194,7 +194,7 @@ function inlineFunctionBody(fnDef, args, ctx) {
|
|
|
194
194
|
}
|
|
195
195
|
if (statements.length === 0)
|
|
196
196
|
return null;
|
|
197
|
-
return statements.join(" ");
|
|
197
|
+
return statements.join("; ");
|
|
198
198
|
}
|
|
199
199
|
function resolveBuiltinTag(name, attrs) {
|
|
200
200
|
if (name === "Heading") {
|
|
@@ -353,7 +353,13 @@ function renderAttr(attr, paramMap, ctx) {
|
|
|
353
353
|
return `${name}="${value.value}"`;
|
|
354
354
|
let raw = value.value;
|
|
355
355
|
if (raw.startsWith("__ACTION_JS__")) {
|
|
356
|
-
|
|
356
|
+
let js = raw.substring("__ACTION_JS__".length).replace(/;\s*$/, '');
|
|
357
|
+
if (ctx.namespace && ctx.declaredVars) {
|
|
358
|
+
for (const v of ctx.declaredVars) {
|
|
359
|
+
const regex = new RegExp(`\\b${v}\\b`, 'g');
|
|
360
|
+
js = js.replace(regex, ctx.namespace + '_' + v);
|
|
361
|
+
}
|
|
362
|
+
}
|
|
357
363
|
const ev = eventAttrName(name);
|
|
358
364
|
if (ev)
|
|
359
365
|
return `${ev}="(function(){ ${js.replace(/"/g, """)}; ${renderFn}(); })()"`;
|
|
@@ -363,7 +369,14 @@ function renderAttr(attr, paramMap, ctx) {
|
|
|
363
369
|
const exprJson = raw.substring("__MULTI_EXPR__".length);
|
|
364
370
|
try {
|
|
365
371
|
const exprs = JSON.parse(exprJson);
|
|
366
|
-
|
|
372
|
+
let jsExprs = exprs.map(e => (0, expr_1.compileExprToJS)(e, undefined, ctx.namespace, ctx.declaredVars)).join("; ");
|
|
373
|
+
jsExprs = jsExprs.replace(/;\s*$/, '');
|
|
374
|
+
if (ctx.namespace && ctx.declaredVars) {
|
|
375
|
+
for (const v of ctx.declaredVars) {
|
|
376
|
+
const regex = new RegExp(`\\b${v}\\b`, 'g');
|
|
377
|
+
jsExprs = jsExprs.replace(regex, ctx.namespace + '_' + v);
|
|
378
|
+
}
|
|
379
|
+
}
|
|
367
380
|
const ev = eventAttrName(name);
|
|
368
381
|
let bumps = "";
|
|
369
382
|
if (ctx.diffingEnabled) {
|
|
@@ -392,11 +405,18 @@ function renderAttr(attr, paramMap, ctx) {
|
|
|
392
405
|
if (fnDef) {
|
|
393
406
|
const inlinedJS = inlineFunctionBody(fnDef, expr.args ?? [], ctx);
|
|
394
407
|
if (inlinedJS) {
|
|
395
|
-
|
|
408
|
+
const handlerJS = inlinedJS.replace(/;\s*$/, '');
|
|
409
|
+
return `${ev}="(function(){ ${handlerJS.replace(/"/g, """)}; ${renderFn}(); })()"`;
|
|
396
410
|
}
|
|
397
411
|
}
|
|
398
412
|
}
|
|
399
413
|
let jsExpr = (0, expr_1.compileExprToJS)(expr, ctx?.loopVars, ctx.namespace, ctx.declaredVars);
|
|
414
|
+
if (ctx.namespace && ctx.declaredVars && !ctx.scopePrefix) {
|
|
415
|
+
for (const v of ctx.declaredVars) {
|
|
416
|
+
const regex = new RegExp(`\\b${v}\\b`, 'g');
|
|
417
|
+
jsExpr = jsExpr.replace(regex, ctx.namespace + '_' + v);
|
|
418
|
+
}
|
|
419
|
+
}
|
|
400
420
|
if (ctx.scopePrefix && ctx.scopeVar) {
|
|
401
421
|
if (expr.kind === "variable" && expr.name && ctx.varDecls?.some(v => v.name === expr.name)) {
|
|
402
422
|
jsExpr = `${ctx.scopePrefix}${expr.name}`;
|
|
@@ -414,7 +434,7 @@ function renderAttr(attr, paramMap, ctx) {
|
|
|
414
434
|
bump = `;window._bump&&window._bump('${expr.target.replace(/'/g, "\\'")}')`;
|
|
415
435
|
}
|
|
416
436
|
if (ev) {
|
|
417
|
-
const handlerBody = `${jsExpr}${bump}; ${renderCall}`;
|
|
437
|
+
const handlerBody = `${jsExpr.replace(/;\s*$/, '')}${bump}; ${renderCall}`;
|
|
418
438
|
if (ctx.scopePrefix) {
|
|
419
439
|
return emitCEAction(ctx, ev, handlerBody);
|
|
420
440
|
}
|
|
@@ -1197,20 +1217,20 @@ function extractFunctionNames(js) {
|
|
|
1197
1217
|
names.push(m[1]);
|
|
1198
1218
|
return names;
|
|
1199
1219
|
}
|
|
1200
|
-
// sinth runtime
|
|
1201
1220
|
function buildRuntime(opts) {
|
|
1202
1221
|
const { varDecls, bodyHTML, logicBlocks, mixedBlocks, assignedVars, exprRegistry, functionsJS } = opts;
|
|
1203
1222
|
const ns = opts.namespace ? "_" + opts.namespace : "";
|
|
1204
1223
|
const renderFn = "sinthRender" + ns;
|
|
1205
1224
|
const needsMixed = mixedBlocks.length > 0;
|
|
1206
|
-
const
|
|
1225
|
+
const needsDynamicAttrs = bodyHTML.includes("data-sinth-style") || bodyHTML.includes("data-sinth-value") || bodyHTML.includes("data-sinth-step") || bodyHTML.includes("data-sinth-checked");
|
|
1226
|
+
const needsExpr = bodyHTML.includes("sinth-expr") || needsMixed || needsDynamicAttrs;
|
|
1207
1227
|
const needsIf = bodyHTML.includes("data-sinth-if") || needsMixed;
|
|
1208
1228
|
const needsFor = bodyHTML.includes("data-sinth-for") || bodyHTML.includes("data-sinth-for-expr");
|
|
1209
1229
|
const needsDelay = bodyHTML.includes("data-sinth-delay") || bodyHTML.includes("data-sinth-delay-expr-id") || mixedBlocks.some(mb => mb.ifHTML.includes("data-sinth-delay") || mb.ifHTML.includes("data-sinth-delay-expr-id") || mb.elseHTML.includes("data-sinth-delay") || mb.elseHTML.includes("data-sinth-delay-expr-id"));
|
|
1210
1230
|
const needsLogic = logicBlocks.length > 0;
|
|
1211
1231
|
const needsFullscreen = bodyHTML.includes("data-sinth-fullscreen");
|
|
1212
1232
|
const needsFullscreenSync = bodyHTML.includes("data-sinth-fullscreen-sync");
|
|
1213
|
-
const needsRender = needsExpr || needsIf || needsFor || needsMixed || needsLogic || bodyHTML.includes("data-sinth-hide") || needsFullscreen || needsFullscreenSync || needsDelay;
|
|
1233
|
+
const needsRender = needsExpr || needsIf || needsFor || needsMixed || needsLogic || bodyHTML.includes("data-sinth-hide") || needsFullscreen || needsFullscreenSync || needsDelay || needsDynamicAttrs;
|
|
1214
1234
|
const varLines = varDecls.map(v => {
|
|
1215
1235
|
const vn = ns ? ns.slice(1) + "_" + v.name : v.name;
|
|
1216
1236
|
if (!v.value) {
|
|
@@ -1270,7 +1290,7 @@ function buildRuntime(opts) {
|
|
|
1270
1290
|
const memoVarDecls = [...memoVars].map(m => `var ${m};`).join("\n");
|
|
1271
1291
|
if (!needsRender) {
|
|
1272
1292
|
const out = [varLines, memoVarDecls].filter(Boolean).join("\n");
|
|
1273
|
-
return out ? `// Sinth
|
|
1293
|
+
return out ? `// Sinth Compiled Runtime\n${out}` : "";
|
|
1274
1294
|
}
|
|
1275
1295
|
const helpers = (0, helpers_1.generateHelpers)({ needsExpr, needsIf, needsFor, needsDelay, needsMixed, ns });
|
|
1276
1296
|
const exprVarUpdates = varDecls
|
|
@@ -1316,9 +1336,20 @@ function buildRuntime(opts) {
|
|
|
1316
1336
|
const exprArrayJS = exprRegistry.length > 0
|
|
1317
1337
|
? `let __X${ns} = [${exprRegistry.map((js) => `function(_ctx){ return ${js}; }`).join(",")}];\n`
|
|
1318
1338
|
: "";
|
|
1339
|
+
let initLogicJS = "";
|
|
1340
|
+
if (opts.initLogic && opts.initLogic.length > 0) {
|
|
1341
|
+
let logic = opts.initLogic.join("\n");
|
|
1342
|
+
if (opts.namespace && opts.declaredVars) {
|
|
1343
|
+
for (const v of opts.declaredVars) {
|
|
1344
|
+
const re = new RegExp(`\\b${v}\\b`, 'g');
|
|
1345
|
+
logic = logic.replace(re, opts.namespace + "_" + v);
|
|
1346
|
+
}
|
|
1347
|
+
}
|
|
1348
|
+
initLogicJS = logic + "\n";
|
|
1349
|
+
}
|
|
1319
1350
|
let renderFunc = '';
|
|
1320
1351
|
if (needsRender) {
|
|
1321
|
-
renderFunc = `function ${renderFn}() {\n ${forSyncBlock}${renderBody.replace(/^/gm, " ")}\n}\n${renderFn}();`;
|
|
1352
|
+
renderFunc = `function ${renderFn}() {\n ${forSyncBlock}${renderBody.replace(/^/gm, " ")}\n}\n${initLogicJS}${renderFn}();`;
|
|
1322
1353
|
}
|
|
1323
1354
|
if (needsFullscreenSync) {
|
|
1324
1355
|
renderFunc += `
|
|
@@ -1349,11 +1380,11 @@ ${memoVarDecls}
|
|
|
1349
1380
|
${varLines}
|
|
1350
1381
|
${renderFunc}`;
|
|
1351
1382
|
if (opts.sharedRuntime && helpers.trim()) {
|
|
1352
|
-
const sharedCode = `// Sinth
|
|
1383
|
+
const sharedCode = `// Sinth Shared Runtime
|
|
1353
1384
|
${helpers}`;
|
|
1354
1385
|
return { page: pageCode, shared: sharedCode };
|
|
1355
1386
|
}
|
|
1356
|
-
return `// Sinth
|
|
1387
|
+
return `// Sinth Compiled Runtime
|
|
1357
1388
|
${forDataJS}
|
|
1358
1389
|
${functionsJS ? functionsJS + "\n" : ""}${helpers}
|
|
1359
1390
|
${exprArrayJS}
|
package/dist/core/parser.js
CHANGED
|
@@ -24,6 +24,7 @@ class Parser {
|
|
|
24
24
|
const scripts = [];
|
|
25
25
|
const customEls = [];
|
|
26
26
|
const varDecls = [];
|
|
27
|
+
const initLogic = [];
|
|
27
28
|
this._varDecls = varDecls;
|
|
28
29
|
if (this.check(types_1.TT.KW_PAGE)) {
|
|
29
30
|
this.consume(types_1.TT.KW_PAGE);
|
|
@@ -66,7 +67,7 @@ class Parser {
|
|
|
66
67
|
}
|
|
67
68
|
else if (this.check(types_1.TT.KW_IF)) {
|
|
68
69
|
const ifNode = this.parseIfBlock();
|
|
69
|
-
uses.push(...this.flattenIfToUses(ifNode, scripts));
|
|
70
|
+
uses.push(...this.flattenIfToUses(ifNode, scripts, initLogic));
|
|
70
71
|
}
|
|
71
72
|
else if (this.check(types_1.TT.KW_FOR)) {
|
|
72
73
|
const forNode = this.parseForLoop();
|
|
@@ -87,7 +88,6 @@ class Parser {
|
|
|
87
88
|
const savedPos = this.pos;
|
|
88
89
|
const identName = this.peek().value;
|
|
89
90
|
const nextType = this.tokens[this.pos + 1]?.type;
|
|
90
|
-
// detect accidental top-level expressions (guess == target" instead of "if guess == target")
|
|
91
91
|
const isComparison = [types_1.TT.OP_EQEQ, types_1.TT.OP_NEQ, types_1.TT.OP_LT, types_1.TT.OP_GT, types_1.TT.OP_LTEQ, types_1.TT.OP_GTEQ].includes(nextType);
|
|
92
92
|
const isLogicAndOr = nextType === types_1.TT.IDENT && (this.tokens[this.pos + 1]?.value === "and" || this.tokens[this.pos + 1]?.value === "or");
|
|
93
93
|
if (isComparison || isLogicAndOr) {
|
|
@@ -110,9 +110,7 @@ class Parser {
|
|
|
110
110
|
this.consume(types_1.TT.EQUALS);
|
|
111
111
|
const expr = this.parseExpression();
|
|
112
112
|
if (expr) {
|
|
113
|
-
|
|
114
|
-
sinthRender();`;
|
|
115
|
-
scripts.push({ raw: js, attrs: {}, loc: this.peek().loc });
|
|
113
|
+
initLogic.push(`${identName} ${op} ${(0, expr_1.compileExprToJS)(expr)};`);
|
|
116
114
|
}
|
|
117
115
|
continue;
|
|
118
116
|
}
|
|
@@ -140,13 +138,13 @@ sinthRender();`;
|
|
|
140
138
|
throw new types_1.SinthError(`Unexpected token '${this.peek().value}' (${types_1.TT[this.peek().type]}) at top level`, this.peek().loc);
|
|
141
139
|
}
|
|
142
140
|
this._visited.clear();
|
|
143
|
-
return { filePath: this.file, isPage, imports, meta, defs, functions, uses, styles, scripts, customEls, varDecls };
|
|
141
|
+
return { filePath: this.file, isPage, imports, meta, defs, functions, uses, styles, scripts, customEls, varDecls, initLogic };
|
|
144
142
|
}
|
|
145
|
-
flattenIfToUses(ifNode, scripts) {
|
|
143
|
+
flattenIfToUses(ifNode, scripts, initLogic) {
|
|
146
144
|
const bodyHasComp = ifNode.body.some(c => c.kind === "use");
|
|
147
145
|
const elseHasComp = (ifNode.elseBody ?? []).some(c => c.kind === "use");
|
|
148
146
|
if (!bodyHasComp && !elseHasComp) {
|
|
149
|
-
|
|
147
|
+
initLogic.push((0, expr_1.compileIfToJS)(ifNode));
|
|
150
148
|
return [];
|
|
151
149
|
}
|
|
152
150
|
const syntheticUse = {
|
|
@@ -40,6 +40,14 @@ function sinthReplaceInsert(t, anchor, ifId, replaceId) {
|
|
|
40
40
|
_rpParent = _rp.parentNode;
|
|
41
41
|
_rpNext = _rp.nextSibling;
|
|
42
42
|
_rp.parentNode.removeChild(_rp);
|
|
43
|
+
let src = _rp.previousSibling;
|
|
44
|
+
while (src && src !== _rp.parentNode.firstChild) {
|
|
45
|
+
if (src.dataset && src.dataset.sinthIfAnchor) {
|
|
46
|
+
anchor._sinthReplaceSourceIfId = src.dataset.sinthIfAnchor;
|
|
47
|
+
break;
|
|
48
|
+
}
|
|
49
|
+
src = src.previousSibling;
|
|
50
|
+
}
|
|
43
51
|
anchor._sinthReplaced = _rp;
|
|
44
52
|
anchor._sinthReplacedParent = _rpParent;
|
|
45
53
|
anchor._sinthReplacedNext = _rpNext;
|
|
@@ -117,7 +125,9 @@ function sinthDelayExpr(el, _ctx) {
|
|
|
117
125
|
helpers += `
|
|
118
126
|
function sinthIfBlock(t) {
|
|
119
127
|
let ifId = t.dataset.sinthIfId;
|
|
120
|
-
let
|
|
128
|
+
let replaceId = t.dataset.sinthIfReplace || null;
|
|
129
|
+
let anchorKey = replaceId ? '__replace__' + replaceId : ifId;
|
|
130
|
+
let anchor = t.parentNode.querySelector('[data-sinth-if-anchor="' + anchorKey + '"]');
|
|
121
131
|
let condFn = ${X}[t.dataset.sinthIfExpr];
|
|
122
132
|
let cond = condFn ? condFn() : false;
|
|
123
133
|
if (cond) {
|
|
@@ -133,10 +143,10 @@ function sinthIfBlock(t) {
|
|
|
133
143
|
if (t.dataset.sinthIfDelayHide === 'false' && t.dataset.sinthIfDelay && _hasContent) {
|
|
134
144
|
let dms = parseInt(t.dataset.sinthIfDelay) || 0;
|
|
135
145
|
setTimeout(function() {
|
|
136
|
-
sinthReplaceInsert(t, anchor,
|
|
146
|
+
sinthReplaceInsert(t, anchor, anchorKey, replaceId);
|
|
137
147
|
}, dms);
|
|
138
148
|
} else {
|
|
139
|
-
anchor = sinthReplaceInsert(t, anchor,
|
|
149
|
+
anchor = sinthReplaceInsert(t, anchor, anchorKey, replaceId);
|
|
140
150
|
}
|
|
141
151
|
} else {
|
|
142
152
|
let runElse = function() {
|
|
@@ -150,6 +160,7 @@ function sinthIfBlock(t) {
|
|
|
150
160
|
}
|
|
151
161
|
if (anchor) {
|
|
152
162
|
if (anchor._sinthReplaced) {
|
|
163
|
+
var restored = anchor._sinthReplaced;
|
|
153
164
|
let insFirst = anchor._sinthInsertedFirst;
|
|
154
165
|
let insLast = anchor._sinthInsertedLast;
|
|
155
166
|
let rpParent = anchor._sinthReplacedParent;
|
|
@@ -164,22 +175,27 @@ function sinthIfBlock(t) {
|
|
|
164
175
|
if (insLast) insLast.remove();
|
|
165
176
|
}
|
|
166
177
|
if (rpParent && rpNext) {
|
|
167
|
-
rpParent.insertBefore(
|
|
178
|
+
rpParent.insertBefore(restored, rpNext);
|
|
168
179
|
} else if (rpParent) {
|
|
169
|
-
rpParent.appendChild(
|
|
180
|
+
rpParent.appendChild(restored);
|
|
170
181
|
}
|
|
171
|
-
if (
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
sinthDelay(anchor._sinthReplaced);
|
|
182
|
+
if (restored.id) {
|
|
183
|
+
var allDup = t.parentNode.querySelectorAll('[id="' + restored.id + '"]');
|
|
184
|
+
for (var di = 0; di < allDup.length; di++) {
|
|
185
|
+
if (allDup[di] !== restored) allDup[di].remove();
|
|
176
186
|
}
|
|
177
|
-
anchor._sinthReplaced = null;
|
|
178
|
-
anchor._sinthReplacedParent = null;
|
|
179
|
-
anchor._sinthReplacedNext = null;
|
|
180
|
-
anchor._sinthInsertedFirst = null;
|
|
181
|
-
anchor._sinthInsertedLast = null;
|
|
182
187
|
}
|
|
188
|
+
restored.querySelectorAll('.sinth-expr').forEach(sinthExpr);
|
|
189
|
+
if (restored.dataset.sinthDelay) {
|
|
190
|
+
delete restored.dataset.sinthDelayDone;
|
|
191
|
+
sinthDelay(restored);
|
|
192
|
+
}
|
|
193
|
+
anchor._sinthReplaced = null;
|
|
194
|
+
anchor._sinthReplacedParent = null;
|
|
195
|
+
anchor._sinthReplacedNext = null;
|
|
196
|
+
anchor._sinthInsertedFirst = null;
|
|
197
|
+
anchor._sinthInsertedLast = null;
|
|
198
|
+
anchor._sinthReplaceSourceIfId = null;
|
|
183
199
|
} else {
|
|
184
200
|
let cur2 = anchor.nextSibling;
|
|
185
201
|
while (cur2 && cur2 !== t) { let nx2 = cur2.nextSibling; cur2.remove(); cur2 = nx2; }
|
package/package.json
CHANGED