@dou-ui/code 0.1.0-alpha.24 → 0.1.0-alpha.25
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/assets/default-BWWFJmzn.js.map +1 -0
- package/dist/code-diff.js.map +1 -1
- package/dist/code-diff.vue_vue_type_script_setup_true_lang.js +149 -7
- package/dist/code-diff.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/code-editor.js.map +1 -1
- package/dist/code-editor.vue_vue_type_script_setup_true_lang.js +152 -34
- package/dist/code-editor.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/language/highlighter.js +1 -1
- package/dist/language/highlighter.js.map +1 -1
- package/dist/language/language.js +24 -2
- package/dist/language/language.js.map +1 -1
- package/dist/language/remote-tokens.js +131 -0
- package/dist/language/remote-tokens.js.map +1 -0
- package/dist/language/worker-client.js +308 -33
- package/dist/language/worker-client.js.map +1 -1
- package/dist/language/worker-protocol.js.map +1 -1
- package/dist/shiki/index.js +54 -3
- package/dist/shiki/index.js.map +1 -1
- package/dist/types/code-diff.vue.d.ts +4 -1
- package/dist/types/code-editor.vue.d.ts +2 -1
- package/dist/types/index.d.ts +18 -6
- package/dist/types/language/language.d.ts +27 -0
- package/dist/types/language/remote-tokens.d.ts +38 -0
- package/dist/types/language/worker-client.d.ts +85 -15
- package/dist/types/language/worker-protocol.d.ts +53 -2
- package/dist/types/shiki/index.d.ts +36 -1
- package/dist/types/types.d.ts +36 -7
- package/dist/types/worker/index.d.ts +27 -12
- package/dist/worker/default.js +1 -1
- package/dist/worker/index.js +280 -53
- package/dist/worker/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/assets/default-BZBMZKf_.js.map +0 -1
|
@@ -11,7 +11,8 @@ import { CodeTransaction } from "./core/transaction.js";
|
|
|
11
11
|
import { matchAfter, replacementFor, searchText } from "./core/search.js";
|
|
12
12
|
import { lineParts, tokenTypes } from "./language/language.js";
|
|
13
13
|
import { CodeHighlighter } from "./language/highlighter.js";
|
|
14
|
-
import {
|
|
14
|
+
import { RemoteTokenStore, compressLineRanges } from "./language/remote-tokens.js";
|
|
15
|
+
import { SyntaxWorkerClient, acquirePoolWorker, holdWorker, isCodeWorkerPool, ownWorker } from "./language/worker-client.js";
|
|
15
16
|
import { format, useCodeMessages } from "./locale.js";
|
|
16
17
|
import { visibleViewport } from "./view/viewport.js";
|
|
17
18
|
import code_keys_default from "./code-keys2.js";
|
|
@@ -124,9 +125,14 @@ var code_editor_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
124
125
|
placeholder: {},
|
|
125
126
|
language: { default: void 0 },
|
|
126
127
|
worker: {
|
|
127
|
-
type: [
|
|
128
|
+
type: [
|
|
129
|
+
Boolean,
|
|
130
|
+
Function,
|
|
131
|
+
Object
|
|
132
|
+
],
|
|
128
133
|
default: false
|
|
129
134
|
},
|
|
135
|
+
syncHighlightLines: { default: void 0 },
|
|
130
136
|
closeBrackets: {
|
|
131
137
|
type: Boolean,
|
|
132
138
|
default: true
|
|
@@ -959,11 +965,12 @@ var code_editor_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
959
965
|
const lineOf = texts ? (k) => texts[k - 1] : void 0;
|
|
960
966
|
return (n) => {
|
|
961
967
|
const read = !!hl?.ready(n);
|
|
968
|
+
const hasTokens = read || usesRemoteTokens() && !!remoteTokens.line(n);
|
|
962
969
|
const language = outer ? (read ? hl.languageAt(n) : null) ?? outer : null;
|
|
963
970
|
return foldEndAt(text, n, {
|
|
964
971
|
brackets: language?.brackets,
|
|
965
972
|
tabSize,
|
|
966
|
-
skip:
|
|
973
|
+
skip: hasTokens ? inStringOrComment : void 0,
|
|
967
974
|
lineText: lineOf
|
|
968
975
|
});
|
|
969
976
|
};
|
|
@@ -1146,7 +1153,7 @@ var code_editor_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
1146
1153
|
const { numbers, texts } = shownLines.value;
|
|
1147
1154
|
const p = preview.value;
|
|
1148
1155
|
const line = p ? doc.value.lineAt(p.from) : null;
|
|
1149
|
-
const tokensOf = syntaxLines(visibleFrom.value, visibleTo.value);
|
|
1156
|
+
const tokensOf = syntaxLines(visibleFrom.value, visibleTo.value, numbers);
|
|
1150
1157
|
const starts = new Set(foldHidden.value.map(([from]) => from - 1));
|
|
1151
1158
|
const { marks, lineClasses, inlines } = lineDecorations.value;
|
|
1152
1159
|
return texts.map((text, i) => {
|
|
@@ -1336,17 +1343,48 @@ var code_editor_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
1336
1343
|
}
|
|
1337
1344
|
/** Lines read ahead of the last read one while drawing; further away, idle time catches up first. */
|
|
1338
1345
|
let highlighter = null;
|
|
1339
|
-
|
|
1346
|
+
const remoteTokens = markRaw(new RemoteTokenStore());
|
|
1347
|
+
/** Bumped when lines in view got their tokens asynchronously (idle time or worker). */
|
|
1340
1348
|
const syntaxTick = ref(0);
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
}
|
|
1349
|
+
const syncReach = () => {
|
|
1350
|
+
const configured = props.syncHighlightLines;
|
|
1351
|
+
return configured === void 0 ? SYNTAX_REACH : Math.max(0, configured);
|
|
1352
|
+
};
|
|
1353
|
+
/** Whether the editor is currently intersecting the viewport (plus prewarm margin). */
|
|
1354
|
+
let inViewport = true;
|
|
1355
|
+
let viewportObserver;
|
|
1345
1356
|
/** The worker reading ahead, with `worker`, and how to let go of it. */
|
|
1346
1357
|
let syntaxWorker = null;
|
|
1347
1358
|
let releaseWorker = null;
|
|
1348
1359
|
let workerJob = 0;
|
|
1360
|
+
let workerAcquiring = false;
|
|
1361
|
+
let workerFallenBack = false;
|
|
1362
|
+
/** True once the worker has responded in flat per-line `tokens` mode for the current language. */
|
|
1363
|
+
let workerTokenMode = false;
|
|
1364
|
+
const workerConfigured = () => !!props.language && !!props.worker && !workerFallenBack && typeof Worker !== "undefined";
|
|
1365
|
+
const usesRemoteTokens = () => workerTokenMode || props.language?.workerMode === "tokens" && workerConfigured();
|
|
1366
|
+
let syntaxJob = 0;
|
|
1367
|
+
let syntaxUntil = 0;
|
|
1368
|
+
/** Runs `task` when the page is idle, with how long it may take (ms). */
|
|
1369
|
+
const idle = typeof requestIdleCallback === "function" ? (task) => requestIdleCallback((deadline) => task(deadline.timeRemaining()), { timeout: 100 }) : (task) => window.setTimeout(() => task(8), 16);
|
|
1370
|
+
const cancelIdle = (id) => typeof cancelIdleCallback === "function" ? cancelIdleCallback(id) : clearTimeout(id);
|
|
1371
|
+
function cancelScheduledSyntax() {
|
|
1372
|
+
if (syntaxJob) {
|
|
1373
|
+
cancelIdle(syntaxJob);
|
|
1374
|
+
syntaxJob = 0;
|
|
1375
|
+
}
|
|
1376
|
+
syntaxUntil = 0;
|
|
1377
|
+
}
|
|
1378
|
+
watch(() => props.language, (language) => {
|
|
1379
|
+
cancelScheduledSyntax();
|
|
1380
|
+
remoteTokens.clear();
|
|
1381
|
+
workerTokenMode = false;
|
|
1382
|
+
workerFallenBack = false;
|
|
1383
|
+
highlighter = language ? markRaw(new CodeHighlighter(language, doc.value, props.tabSize)) : null;
|
|
1384
|
+
syntaxTick.value++;
|
|
1385
|
+
}, { immediate: true });
|
|
1349
1386
|
function stopSyntaxWorker() {
|
|
1387
|
+
workerAcquiring = false;
|
|
1350
1388
|
syntaxWorker?.dispose();
|
|
1351
1389
|
syntaxWorker = null;
|
|
1352
1390
|
releaseWorker?.();
|
|
@@ -1354,13 +1392,21 @@ var code_editor_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
1354
1392
|
}
|
|
1355
1393
|
/** Reading goes back to the page, saying why while developing. */
|
|
1356
1394
|
function workerFallback(message, error) {
|
|
1395
|
+
workerFallenBack = true;
|
|
1396
|
+
workerTokenMode = false;
|
|
1357
1397
|
stopSyntaxWorker();
|
|
1358
1398
|
syntaxTick.value++;
|
|
1359
1399
|
if (process.env.NODE_ENV !== "production") console.warn(`[@dou-ui/code] ${message}: colors are read on the page instead.`, ...error ? [error] : []);
|
|
1360
1400
|
}
|
|
1361
|
-
function attachWorker(worker, release) {
|
|
1401
|
+
function attachWorker(worker, release, setBusy) {
|
|
1362
1402
|
const language = props.language;
|
|
1403
|
+
if (!language) {
|
|
1404
|
+
release();
|
|
1405
|
+
return;
|
|
1406
|
+
}
|
|
1407
|
+
cancelScheduledSyntax();
|
|
1363
1408
|
releaseWorker = release;
|
|
1409
|
+
workerTokenMode = language.workerMode === "tokens";
|
|
1364
1410
|
syntaxWorker = new SyntaxWorkerClient(worker, language, () => doc.value, props.tabSize, {
|
|
1365
1411
|
states(points) {
|
|
1366
1412
|
const hl = highlighter;
|
|
@@ -1368,35 +1414,63 @@ var code_editor_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
1368
1414
|
hl.adopt(points);
|
|
1369
1415
|
syntaxTick.value++;
|
|
1370
1416
|
},
|
|
1417
|
+
tokens(from, tokenLines, frontier, ranges) {
|
|
1418
|
+
if (props.language !== language) return;
|
|
1419
|
+
workerTokenMode = true;
|
|
1420
|
+
if (ranges) remoteTokens.adoptRanges(ranges, frontier);
|
|
1421
|
+
else remoteTokens.adopt(from, tokenLines, frontier);
|
|
1422
|
+
syntaxTick.value++;
|
|
1423
|
+
},
|
|
1371
1424
|
unsupported(missing) {
|
|
1372
|
-
workerFallback(missing ? `the worker has no language named "${missing}" (for "${language.name}"); pass it to serveCodeHighlighting in the worker` : `the
|
|
1425
|
+
workerFallback(missing ? `the worker has no language named "${missing}" (for "${language.name}"); pass it to serveCodeHighlighting in the worker` : `the worker could not highlight "${language.name}"`);
|
|
1373
1426
|
},
|
|
1374
1427
|
failed(error) {
|
|
1375
1428
|
workerFallback("the highlighting worker failed", error);
|
|
1376
|
-
}
|
|
1429
|
+
},
|
|
1430
|
+
onBusyChange: setBusy
|
|
1377
1431
|
});
|
|
1378
1432
|
syntaxTick.value++;
|
|
1379
1433
|
}
|
|
1434
|
+
/** Lazily acquires a worker from the built-in or user-supplied pool when highlighting is actually needed. */
|
|
1435
|
+
function ensureWorkerClient() {
|
|
1436
|
+
if (syntaxWorker || workerAcquiring || !mounted.value || !workerConfigured()) return;
|
|
1437
|
+
const option = props.worker;
|
|
1438
|
+
if (option !== true && !isCodeWorkerPool(option)) return;
|
|
1439
|
+
const job = workerJob;
|
|
1440
|
+
workerAcquiring = true;
|
|
1441
|
+
(option === true ? ownWorker() : acquirePoolWorker(option)).then(({ worker, release, setBusy }) => {
|
|
1442
|
+
if (job !== workerJob) {
|
|
1443
|
+
release();
|
|
1444
|
+
return;
|
|
1445
|
+
}
|
|
1446
|
+
workerAcquiring = false;
|
|
1447
|
+
attachWorker(worker, release, setBusy);
|
|
1448
|
+
}, (error) => {
|
|
1449
|
+
if (job !== workerJob) return;
|
|
1450
|
+
workerAcquiring = false;
|
|
1451
|
+
workerFallback(option === true ? "the built-in worker could not start" : "the worker pool could not start", error);
|
|
1452
|
+
});
|
|
1453
|
+
}
|
|
1380
1454
|
watch([
|
|
1381
1455
|
() => props.language,
|
|
1382
1456
|
() => props.worker,
|
|
1383
1457
|
mounted
|
|
1384
1458
|
], ([language, option, isMounted]) => {
|
|
1385
1459
|
stopSyntaxWorker();
|
|
1460
|
+
remoteTokens.clear();
|
|
1461
|
+
workerFallenBack = false;
|
|
1462
|
+
workerTokenMode = false;
|
|
1386
1463
|
const job = ++workerJob;
|
|
1387
1464
|
if (!language || !option || !isMounted || typeof Worker === "undefined") return;
|
|
1388
|
-
if (option === true) {
|
|
1389
|
-
|
|
1390
|
-
if (job === workerJob) attachWorker(worker, release);
|
|
1391
|
-
else release();
|
|
1392
|
-
}, (error) => job === workerJob && workerFallback("the built-in worker could not start", error));
|
|
1465
|
+
if (option === true || isCodeWorkerPool(option)) {
|
|
1466
|
+
syntaxTick.value++;
|
|
1393
1467
|
return;
|
|
1394
1468
|
}
|
|
1395
1469
|
let worker;
|
|
1396
1470
|
try {
|
|
1397
1471
|
worker = option();
|
|
1398
1472
|
} catch (error) {
|
|
1399
|
-
workerFallback("the worker could not start", error);
|
|
1473
|
+
if (job === workerJob) workerFallback("the worker could not start", error);
|
|
1400
1474
|
return;
|
|
1401
1475
|
}
|
|
1402
1476
|
attachWorker(worker, holdWorker(worker));
|
|
@@ -1407,38 +1481,67 @@ var code_editor_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
1407
1481
|
});
|
|
1408
1482
|
/** Brings the colors along with a change of the text. */
|
|
1409
1483
|
function syntaxChange(next, changes) {
|
|
1484
|
+
const prev = highlighter?.text ?? doc.value;
|
|
1485
|
+
remoteTokens.update(prev, next, changes);
|
|
1410
1486
|
highlighter?.update(next, changes);
|
|
1411
1487
|
syntaxWorker?.change(changes);
|
|
1412
1488
|
}
|
|
1413
|
-
/** Gets the tokens of the lines in view,
|
|
1414
|
-
function syntaxLines(from, to) {
|
|
1489
|
+
/** Gets the tokens of the lines in view, delegating unread ranges to the worker or idle slices. */
|
|
1490
|
+
function syntaxLines(from, to, shownNumbers) {
|
|
1415
1491
|
syntaxTick.value;
|
|
1416
1492
|
const hl = highlighter;
|
|
1417
1493
|
if (!hl) return () => null;
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1494
|
+
const reach = syncReach();
|
|
1495
|
+
const tokenRanges = shownNumbers ? compressLineRanges(shownNumbers) : from <= to ? [[from, to]] : [];
|
|
1496
|
+
if (usesRemoteTokens()) {
|
|
1497
|
+
const ready = shownNumbers ? remoteTokens.readyNumbers(shownNumbers) : remoteTokens.readyRange(from, to);
|
|
1498
|
+
if (inViewport && !ready && tokenRanges.length > 0) {
|
|
1499
|
+
const firstFrom = tokenRanges[0][0];
|
|
1500
|
+
const lastTo = tokenRanges[tokenRanges.length - 1][1];
|
|
1501
|
+
if (syntaxWorker) syntaxWorker.want(remoteTokens.frontier, lastTo, firstFrom, lastTo, tokenRanges);
|
|
1502
|
+
else ensureWorkerClient();
|
|
1503
|
+
}
|
|
1504
|
+
return (n) => remoteTokens.line(n);
|
|
1505
|
+
}
|
|
1506
|
+
if (!hl.ready(to) && to - hl.frontier > reach) {
|
|
1507
|
+
if (inViewport) {
|
|
1508
|
+
if (workerConfigured()) {
|
|
1509
|
+
if (syntaxWorker) syntaxWorker.want(hl.frontier, to, from, to, tokenRanges);
|
|
1510
|
+
else ensureWorkerClient();
|
|
1511
|
+
} else scheduleSyntax(to);
|
|
1512
|
+
}
|
|
1421
1513
|
return (n) => hl.ready(n) ? hl.line(n) : null;
|
|
1422
1514
|
}
|
|
1423
1515
|
return (n) => hl.line(n);
|
|
1424
1516
|
}
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1517
|
+
function setInViewport(visible) {
|
|
1518
|
+
if (inViewport === visible) return;
|
|
1519
|
+
inViewport = visible;
|
|
1520
|
+
if (!visible) {
|
|
1521
|
+
syntaxWorker?.cancel();
|
|
1522
|
+
cancelScheduledSyntax();
|
|
1523
|
+
} else syntaxTick.value++;
|
|
1524
|
+
}
|
|
1430
1525
|
function scheduleSyntax(until) {
|
|
1526
|
+
if (!inViewport || !mounted.value || typeof window === "undefined") return;
|
|
1431
1527
|
syntaxUntil = Math.max(syntaxUntil, until);
|
|
1432
1528
|
if (syntaxJob) return;
|
|
1433
1529
|
syntaxJob = idle((budget) => {
|
|
1434
1530
|
syntaxJob = 0;
|
|
1435
1531
|
const hl = highlighter;
|
|
1436
|
-
if (!hl)
|
|
1532
|
+
if (!hl || !inViewport) {
|
|
1533
|
+
syntaxUntil = 0;
|
|
1534
|
+
return;
|
|
1535
|
+
}
|
|
1536
|
+
const prevFrontier = hl.frontier;
|
|
1437
1537
|
hl.work(performance.now() + Math.min(20, Math.max(4, budget - 1)), syntaxUntil);
|
|
1438
1538
|
if (hl.ready(syntaxUntil)) {
|
|
1439
1539
|
syntaxUntil = 0;
|
|
1440
1540
|
syntaxTick.value++;
|
|
1441
|
-
} else
|
|
1541
|
+
} else {
|
|
1542
|
+
if (hl.frontier > prevFrontier && hl.frontier >= visibleFrom.value) syntaxTick.value++;
|
|
1543
|
+
scheduleSyntax(syntaxUntil);
|
|
1544
|
+
}
|
|
1442
1545
|
});
|
|
1443
1546
|
}
|
|
1444
1547
|
/** The kind of token the character at `pos` is part of, when its line has been read. */
|
|
@@ -1446,7 +1549,7 @@ var code_editor_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
1446
1549
|
const hl = highlighter;
|
|
1447
1550
|
if (!hl || pos < 0 || pos >= doc.value.length) return null;
|
|
1448
1551
|
const line = doc.value.lineAt(pos);
|
|
1449
|
-
const tokens = hl.line(line.number,
|
|
1552
|
+
const tokens = usesRemoteTokens() ? remoteTokens.line(line.number) : hl.line(line.number, syncReach());
|
|
1450
1553
|
if (!tokens) return null;
|
|
1451
1554
|
const col = pos - line.from;
|
|
1452
1555
|
for (let i = 0; i < tokens.length; i += 2) if (col < tokens[i]) {
|
|
@@ -1458,8 +1561,9 @@ var code_editor_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
1458
1561
|
function languageAt(pos) {
|
|
1459
1562
|
const hl = highlighter;
|
|
1460
1563
|
if (!hl) return null;
|
|
1564
|
+
if (usesRemoteTokens()) return hl.language;
|
|
1461
1565
|
const line = doc.value.lineAt(Math.min(Math.max(pos, 0), doc.value.length));
|
|
1462
|
-
if (line.number - hl.frontier >
|
|
1566
|
+
if (line.number - hl.frontier > syncReach()) return hl.language;
|
|
1463
1567
|
return hl.languageAt(line.number);
|
|
1464
1568
|
}
|
|
1465
1569
|
/**
|
|
@@ -4243,7 +4347,7 @@ var code_editor_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
4243
4347
|
const { n, sub } = lay.lineAtRow(row);
|
|
4244
4348
|
const rowText = text.lineText(n);
|
|
4245
4349
|
const breaks = wrapRows ? wrapOf(rowText).breaks : [];
|
|
4246
|
-
const tokens = hl && (hl.ready(n) || n - hl.frontier <=
|
|
4350
|
+
const tokens = usesRemoteTokens() ? remoteTokens.line(n) : hl && (hl.ready(n) || n - hl.frontier <= syncReach()) ? hl.line(n) : null;
|
|
4247
4351
|
const rowsHere = lay.rowsOf(n);
|
|
4248
4352
|
for (let k = sub; k < rowsHere && row <= lastRow; k++, row++) {
|
|
4249
4353
|
const start = k ? breaks[k - 1] : 0;
|
|
@@ -4457,7 +4561,19 @@ var code_editor_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
4457
4561
|
if (root.value) resize.observe(root.value);
|
|
4458
4562
|
}
|
|
4459
4563
|
updateClip();
|
|
4564
|
+
if (root.value && typeof window !== "undefined" && typeof IntersectionObserver !== "undefined") {
|
|
4565
|
+
const rect = root.value.getBoundingClientRect();
|
|
4566
|
+
if (rect.width > 0 || rect.height > 0) {
|
|
4567
|
+
if (rect.bottom < -200 || rect.top > window.innerHeight + 200) inViewport = false;
|
|
4568
|
+
}
|
|
4569
|
+
viewportObserver = new IntersectionObserver((entries) => {
|
|
4570
|
+
const entry = entries[entries.length - 1];
|
|
4571
|
+
if (entry) setInViewport(entry.isIntersecting);
|
|
4572
|
+
}, { rootMargin: "200px 0px" });
|
|
4573
|
+
viewportObserver.observe(root.value);
|
|
4574
|
+
}
|
|
4460
4575
|
mounted.value = true;
|
|
4576
|
+
if (highlighter && !highlighter.ready(doc.value.lines)) syntaxTick.value++;
|
|
4461
4577
|
window.addEventListener("scroll", onWindowScroll, {
|
|
4462
4578
|
capture: true,
|
|
4463
4579
|
passive: true
|
|
@@ -4500,7 +4616,9 @@ var code_editor_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
4500
4616
|
if (restarted) warnRestarts();
|
|
4501
4617
|
});
|
|
4502
4618
|
onBeforeUnmount(() => {
|
|
4503
|
-
|
|
4619
|
+
cancelScheduledSyntax();
|
|
4620
|
+
viewportObserver?.disconnect();
|
|
4621
|
+
viewportObserver = void 0;
|
|
4504
4622
|
clearTimeout(searchTimer);
|
|
4505
4623
|
resize?.disconnect();
|
|
4506
4624
|
widgetObserver?.disconnect();
|