full codespell coverage

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2026-06-04 12:36:10 +02:00
parent 0bfcdabbbb
commit 5e99dee3c2
103 changed files with 264 additions and 254 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ export function keyupEditAttention(event: KeyboardEvent): void {
function selectCurrentWord(): boolean {
if (selectionStart !== selectionEnd) return false;
const delimiters = `${window.opts.keyedit_delimiters} \r\n\t`;
// seek backward until to find beggining
// seek backward until to find beginning
while (!delimiters.includes(text[selectionStart - 1]) && selectionStart > 0) selectionStart--;
// seek forward to find end
while (!delimiters.includes(text[selectionEnd]) && selectionEnd < text.length) selectionEnd++;
+6 -6
View File
@@ -1184,7 +1184,7 @@
: remoteHost
}
function depricate(key) {
function deprecate(key) {
var splitName = key.split('Callback')
if (splitName.length === 2) {
@@ -1213,7 +1213,7 @@
iframe.src && iframe.src.split('/').slice(0, 3).join('/')
checkOptions(options)
Object.keys(options).forEach(depricate, options)
Object.keys(options).forEach(deprecate, options)
copyOptions(options)
if (settings[iframeId]) {
@@ -1242,7 +1242,7 @@
}
}
function debouce(fn, time) {
function debounce(fn, time) {
if (null === timer) {
timer = setTimeout(function () {
timer = null
@@ -1302,7 +1302,7 @@
'window',
'Mutation observed: ' + mutations[0].target + ' ' + mutations[0].type
)
debouce(checkIFrames, 16)
debounce(checkIFrames, 16)
}
function createMutationObserver() {
@@ -1332,7 +1332,7 @@
}
log('window', 'Trigger event: ' + event)
debouce(resize, 16)
debounce(resize, 16)
}
// Not testable in PhantomJS
@@ -1344,7 +1344,7 @@
if ('hidden' !== document.visibilityState) {
log('document', 'Trigger event: Visibility change')
debouce(resize, 16)
debounce(resize, 16)
}
}
+1 -1
View File
@@ -105,7 +105,7 @@ const Hash = /** @class */ (function () {
this.reset();
}
// Resets hash state making it possible
// to re-use this instance to hash other data.
// to reuse this instance to hash other data.
Hash.prototype.reset = function () {
this.state[0] = 0x6a09e667;
this.state[1] = 0xbb67ae85;
+1 -1
View File
@@ -92,7 +92,7 @@ async function initStartup() {
executeCallbacks(uiReadyCallbacks);
// optinally wait for modern ui
// optionally wait for modern ui
if (window.waitForUiReady) await window.waitForUiReady();
// post startup tasks that may take longer but are not critical