-
-
Notifications
You must be signed in to change notification settings - Fork 930
Move from return false to m.capture(event) for event handlers #2681
Copy link
Copy link
Closed
Labels
Area: CoreFor anything dealing with Mithril core itselfFor anything dealing with Mithril core itselfType: Breaking ChangeFor any feature request or suggestion that could reasonably break existing codeFor any feature request or suggestion that could reasonably break existing codeType: EnhancementFor any feature request or suggestion that isn't a bug fixFor any feature request or suggestion that isn't a bug fix
Metadata
Metadata
Assignees
Labels
Area: CoreFor anything dealing with Mithril core itselfFor anything dealing with Mithril core itselfType: Breaking ChangeFor any feature request or suggestion that could reasonably break existing codeFor any feature request or suggestion that could reasonably break existing codeType: EnhancementFor any feature request or suggestion that isn't a bug fixFor any feature request or suggestion that isn't a bug fix
Type
Projects
Status
Completed/Declined
Mithril version:
Platform and OS:
Project:
Is this something you're interested in implementing yourself?
Description
And also remove the return value handling logic from this section.
Why
I want to see this idiom die, just as it's largely died elsewhere:
Also, it's not compatible with async functions as event handlers.
Oh, and it'll likely result in a small but measurable net reduction in size compared to what we already do to support
return false.Possible Implementation
See description.
Open Questions
I think the real discussion is should we continue to support the
return falsethat standards bodies have effectively declared as legacy?