Context
Found while reviewing PR #20369. That PR's month-view plugin copies this plugin's shape, gap included.
The Problem
Neo.calendar.view.week.plugin.DragDrop#getEventDragZone creates an EventDragZone on the first event drag and stores it on owner.eventDragZone. Nothing destroys it. The plugin has no destroy(), and week.Component#destroy only clears timeAxis.
A DragZone registers with the main thread's DragDrop addon when it is constructed, and only its destroy() unregisters it. The JSDoc at the unregister call explains the cost: a stale registration "silently misattributes a later gesture to a destroyed zone". So once a week view is destroyed, its zone stays registered.
The Architectural Reality
src/calendar/view/week/plugin/DragDrop.mjs l.76–110: getEventDragZone, the creator.
src/draggable/DragZone.mjs l.211 registers the zone at construction; destroy() (l.220–235) unregisters it.
src/component/Base.mjs l.1447: a component destroys its plugins, so a plugin destroy() runs together with the view's.
src/core/Base.mjs destroy() deletes the instance's own properties, but doesn't destroy the instances they reference.
The Fix
Give Neo.calendar.view.week.plugin.DragDrop a destroy() that destroys owner.eventDragZone when it exists, clears the reference, and calls super.destroy(). The creator ends the lifetime it started.
Acceptance Criteria
Out of Scope
- The month view's plugin, which PR #20369 covers.
- The week view's
EventResizable plugin.
Related
Live latest-open + closed sweep: checked the latest 20 open issues (#20185–#20380) and the closed search "calendar week DragZone destroy" at 2026-11-05T20:00Z. No equivalent ticket or prior exclusion found. The A2A sweep of the last 15 messages shows no claim on this scope. Memory Core holds no prior decision on it.
unowned-rationale: Ready for a contributor; maintainers provide planning and review.
Origin Session ID: 620212f1-fddf-4d36-89f6-34cbc3a124cf
Retrieval Hint: "calendar week EventDragZone destroy stale main-thread zone registration"
Context
Found while reviewing PR #20369. That PR's month-view plugin copies this plugin's shape, gap included.
The Problem
Neo.calendar.view.week.plugin.DragDrop#getEventDragZonecreates anEventDragZoneon the first event drag and stores it onowner.eventDragZone. Nothing destroys it. The plugin has nodestroy(), andweek.Component#destroyonly clearstimeAxis.A
DragZoneregisters with the main thread'sDragDropaddon when it is constructed, and only itsdestroy()unregisters it. The JSDoc at the unregister call explains the cost: a stale registration "silently misattributes a later gesture to a destroyed zone". So once a week view is destroyed, its zone stays registered.The Architectural Reality
src/calendar/view/week/plugin/DragDrop.mjsl.76–110:getEventDragZone, the creator.src/draggable/DragZone.mjsl.211 registers the zone at construction;destroy()(l.220–235) unregisters it.src/component/Base.mjsl.1447: a component destroys its plugins, so a plugindestroy()runs together with the view's.src/core/Base.mjsdestroy()deletes the instance's own properties, but doesn't destroy the instances they reference.The Fix
Give
Neo.calendar.view.week.plugin.DragDropadestroy()that destroysowner.eventDragZonewhen it exists, clears the reference, and callssuper.destroy(). The creator ends the lifetime it started.Acceptance Criteria
isDestroyedistrueafterwards).Out of Scope
EventResizableplugin.Related
Live latest-open + closed sweep: checked the latest 20 open issues (#20185–#20380) and the closed search "calendar week DragZone destroy" at 2026-11-05T20:00Z. No equivalent ticket or prior exclusion found. The A2A sweep of the last 15 messages shows no claim on this scope. Memory Core holds no prior decision on it.
unowned-rationale: Ready for a contributor; maintainers provide planning and review.
Origin Session ID: 620212f1-fddf-4d36-89f6-34cbc3a124cf
Retrieval Hint: "calendar week EventDragZone destroy stale main-thread zone registration"