LearnNewsExamplesServices
Frontmatter
id1766
titlecontroller.Component: getParentHandlerScope() => getHandlerScope()
stateClosed
labels
enhancement
assigneestobiu
createdAtApr 14, 2021, 11:25 AM
updatedAtApr 14, 2021, 11:52 AM
githubUrlhttps://github.com/neomjs/neo/issues/1766
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtApr 14, 2021, 11:51 AM

controller.Component: getParentHandlerScope() => getHandlerScope()

Closed v8.1.0 enhancement
tobiu
tobiu commented on Apr 14, 2021, 11:25 AM

Since each controller now has a parent config, we can speed up the logic on this one.

We no longer need to access manager.Component to search for the closest parent controller, but have direct access.

The new method needs to be recursive and should include the current scope (reason for the name change).

tobiu added the enhancement label on Apr 14, 2021, 11:25 AM
tobiu assigned to @tobiu on Apr 14, 2021, 11:25 AM
tobiu referenced in commit e277978 - "controller.Component: getParentHandlerScope() => getHandlerScope() #1766" on Apr 14, 2021, 11:45 AM
tobiu
tobiu Apr 14, 2021, 11:51 AM

As a side effect, all listeners now search the parent chain for potential matches (was only the case for domListeners before).

tobiu closed this issue on Apr 14, 2021, 11:51 AM