ZDDC/mdedit/js
ZDDC 0ad5b7dc0d refactor(mdedit): drop window.* TOC globals, call functions directly
mdedit's toc.js exported updateToc / clearActiveTocItem / setActiveTocItem
as window.* globals, which was the only remaining violation of the
two-globals discipline (only window.app and window.zddc are intended).
Other tools either use IIFE + window.app.modules.X, or — like mdedit —
declare top-level functions that are reachable across concatenated files
without going through window.

Removed the three window.* exports and unqualified the four call sites
in events.js, editor.js (×3), and file-system.js. setActiveTocItem was
already called bare elsewhere; the change is just dropping a
window.foo && check chain that's now unnecessary.

No behavior change — TOC generation and click-to-scroll work as before.
mdedit's three Playwright tests still pass.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-09 18:39:10 -05:00
..
app.js chore(headers): standardize across all 7 tools 2026-05-04 07:49:17 -05:00
editor.js refactor(mdedit): drop window.* TOC globals, call functions directly 2026-05-09 18:39:10 -05:00
events.js refactor(mdedit): drop window.* TOC globals, call functions directly 2026-05-09 18:39:10 -05:00
file-ops.js Initial commit 2026-04-27 11:05:47 -05:00
file-system.js refactor(mdedit): drop window.* TOC globals, call functions directly 2026-05-09 18:39:10 -05:00
file-tree.js feat(server): authenticated CRUD + verb-based RBAC with WORM archive folders 2026-05-05 15:58:04 -05:00
front-matter.js Initial commit 2026-04-27 11:05:47 -05:00
main.js chore(headers): standardize across all 7 tools 2026-05-04 07:49:17 -05:00
resizer.js feat(tools,build): in-flight HTML-tool reworks and build-infra updates 2026-04-29 12:52:27 -05:00
toc.js refactor(mdedit): drop window.* TOC globals, call functions directly 2026-05-09 18:39:10 -05:00
utils.js feat(tools,build): in-flight HTML-tool reworks and build-infra updates 2026-04-29 12:52:27 -05:00