mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-25 20:00:42 +00:00
As part of the ongoing technical debt cleanup, this commit modernizes CPPlatformPasteboard.j by removing its reliance on the C-preprocessor and stripping obsolete Internet Explorer compatibility code. Key changes: - Inlined the `SUPPRESS_CAPPUCCINO_CUT_FOR_EVENT` and `SUPPRESS_CAPPUCCINO_PASTE_FOR_EVENT` macros directly to standard property assignments. - Removed the IE `srcElement` fallback in `hasEditableTarget`. - Removed the IE `attachEvent`/`detachEvent` branch in `createDOMElements`, keeping only the standard `addEventListener` path. - Replaced `var` with `const` and `let` for proper block scoping and immutability. - Retained the `#if PLATFORM(DOM)` guards to protect the Node.js CI during the phased modernization effort. All changes are annotated with `// MODIFICATION:` comments for clear review tracking.