LearnNewsExamplesServices
Frontmatter
id300
titlemanager.DomEvent: fire() => add the receiver component as a param prop
stateClosed
labels
enhancement
assignees[]
createdAtMar 16, 2020, 8:47 PM
updatedAtMar 16, 2020, 8:48 PM
githubUrlhttps://github.com/neomjs/neo/issues/300
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtMar 16, 2020, 8:48 PM

manager.DomEvent: fire() => add the receiver component as a param prop

tobiu
tobiu commented on Mar 16, 2020, 8:47 PM

use case:

multiple buttons use the same string based handler-function, which is defined inside a component controller.

adding the info which button was the target saves adding a lot of references & logic to figure it out.

will use the prop name "component", hoping it will never collide with any possible dom event prop name.

tobiu added the enhancement label on Mar 16, 2020, 8:47 PM
tobiu referenced in commit 3aefdb4 - "manager.DomEvent: fire() => add the receiver component as a param prop #300" on Mar 16, 2020, 8:48 PM
tobiu
tobiu Mar 16, 2020, 8:48 PM

done.

tobiu closed this issue on Mar 16, 2020, 8:48 PM