You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(core): Rename BaseDispatcher to Dispatcher. (angular#55721)
Rename `BaseDispatcher` to `Dispatcher` and `Dispatcher` to
`LegacyDispatcher`. The `GlobalHandler` type and `stopPropagation`
function needs to be left for now in dispatcher.ts as it was not
exported previously from legacy_dispatcher.ts.
PR Closeangular#55721
// eventInfoWrapper contains all the information about the event
@@ -246,16 +244,16 @@ some tradeoffs to doing this:
246
244
247
245
Pros of cleaning up event contract:
248
246
249
-
- Native handlers avoid the [quirks](#known-caveats) of JSAction dispatching
247
+
- Native handlers avoid the [quirks](#known-caveats) of JSAction dispatching
250
248
251
249
Pros of keeping event contract:
252
250
253
-
- JSAction's event delegation drastically reduces the number of event
254
-
listeners registered with the browser. In extreme cases, registering
255
-
thousands of listeners in your app can be noticably slow.
256
-
- There may be slight behavior differences when your event is dispatched via
257
-
JSAction vs native event listeners. Always using JSAction dispatch keeps
258
-
things consistent.
251
+
- JSAction's event delegation drastically reduces the number of event
252
+
listeners registered with the browser. In extreme cases, registering
253
+
thousands of listeners in your app can be noticably slow.
254
+
- There may be slight behavior differences when your event is dispatched via
255
+
JSAction vs native event listeners. Always using JSAction dispatch keeps
256
+
things consistent.
259
257
260
258
<!-- end list -->
261
259
@@ -269,4 +267,4 @@ Because JSAction may potentially replay queued events some time after the events
269
267
originally fired, certain APIs like `e.preventDefault()` or
270
268
`e.stopPropagation()` won't function correctly.
271
269
272
-
<!-- TODO: Add a comprehensive list of known behavior differences for both replayed and delegated events. There are also plans to emulate some browser behavior (i.e. stopPropagation) that may fix some of these. -->
270
+
<!-- TODO: Add a comprehensive list of known behavior differences for both replayed and delegated events. There are also plans to emulate some browser behavior (i.e. stopPropagation) that may fix some of these. -->
0 commit comments