mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-29 01:34:29 +01:00
- Each ScriptUI element gets an id that the dialog's description carries. The app keeps a queued click or change, and each typed text, with its control's id instead of the control's position in its container, so a handler that removes a control no longer sends a later click or typed text to the control that moved into its place. An event whose control was removed is dropped, and so is a queued list change when a handler changed the list's items. - A container that no longer holds the control when its turn comes does not get the event, and a listener that an earlier one removed in the same event does not run. The containers above the target stay kept from collection while the listeners run. - A removed control and the controls it holds have no `window`; `removeAll` throws on them like `add` and `remove`. - Every element starts with its listener list, which a script cannot replace, and `remove` and `removeAll` refuse an object made to look like an element of a real dialog. - docs/mcp.md says a group takes its properties fourth when the third argument is not an object, as the code does.