-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instrument event dispatcher (rebased) #12550
Instrument event dispatcher (rebased) #12550
Conversation
@@ -542,6 +553,8 @@ var EmberRouter = EmberObject.extend(Evented, { | |||
emberRouter.didTransition(infos); | |||
}; | |||
|
|||
// TODO | |||
//router.willTransition = this.willTransition.bind(this); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this comment about?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, I think this was us saying we should just replace the line below with a bind
since that's exactly what it was doing, but maybe we didn't want to change unrelated code in the commit
3b52aeb
to
5740168
Compare
Looks like this needs a rebase. |
5740168
to
29b29ff
Compare
Seems inoffensive, but does lack any tests for the action and routing instrumentation. |
This commit adds instrumentation for interaction events handled by components. The `before` hook of the instrumentation runs right before the component’s event handler is invoked, and the `after` hook runs right after it is invoked.
This commit instruments closure actions.
This instruments the start and end of top-level routing transitions. It does not run for redirects or intermediate transitions. There are two events: `router.transition.url` (payload contains the URL) and `router.transition.named` (payload contains the route name). The current implementation does not properly handle top-level transitions that never complete at all; this requires a fix to router.js.
29b29ff
to
637bd2b
Compare
There is a very long trail on this one:
Closing this version for now... |
Rebased version of #12088