Files
cappuccino/Foundation
David Richardson a745af8ead Refactor CPTimer: Remove CPP dependencies and mark legacy anti-patterns
As part of the ongoing technical debt cleanup, this commit modernizes
CPTimer.j by removing its reliance on the C-preprocessor and updating
syntax to modern JavaScript standards.

Key changes:
- Replaced `#define CPTimerDefaultTimeInterval` with a native `const`.
- Replaced `var` with `const`/`let` for proper block scoping and immutability.
- Replaced the build-time `PLATFORM(DOM)` guard with a runtime
  `typeof(window) !== 'undefined'` check, ensuring Foundation does not
  depend on build-time platform flags.
- Added `FIXME` comments to explicitly document architectural anti-patterns:
  - The invasive global override of `window.setTimeout` and `window.setInterval`.
  - The use of `new Function` for string evaluation (CSP violation).
  - The questionable exposure of `CPTimerDefaultTimeInterval` as a fallback.
2026-07-23 15:26:31 -06:00
..
2026-07-21 15:15:53 -06:00
2026-07-21 15:15:53 -06:00
2015-04-22 11:22:44 -07:00
2010-12-26 01:34:37 +02:00
2010-12-26 01:34:37 +02:00
2010-12-26 01:34:37 +02:00
2021-08-19 10:56:13 +02:00
2026-03-24 21:34:39 +01:00
2010-12-26 01:34:37 +02:00
2022-10-06 11:24:56 +02:00