1. parse-trigger-spec: strip [condition] from event names, store as "filter" modifier (e.g. keyup[key=='s'] → event="keyup", filter=...) 2. bind-event: evaluate filter conditions via JS Function constructor when filter modifier is present 3. bind-inline-handlers: map afterSwap/beforeRequest etc. to sx:* event names (matching what the engine dispatches) 4. bind-inline-handlers: detect JS syntax in body (contains ".") and eval via Function instead of SX parse — enables this.reset() etc. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
23 KiB
23 KiB