mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
refactor(core): remove unused restriction parameter
Removes the `restriction` parameter from `registerAppScopedDispatcher` and `registerGlobalDispatcher`.
(cherry picked from commit d072791f13)
This commit is contained in:
@@ -118,7 +118,7 @@ export const isCaptureEventType: (eventType: string) => boolean;
|
||||
export const isEarlyEventType: (eventType: string) => boolean;
|
||||
|
||||
// @public
|
||||
export function registerAppScopedDispatcher(restriction: Restriction, appId: string, dispatcher: (eventInfo: EventInfo) => void, dataContainer?: EarlyJsactionDataContainer): void;
|
||||
export function registerAppScopedDispatcher(appId: string, dispatcher: (eventInfo: EventInfo) => void, dataContainer?: EarlyJsactionDataContainer): void;
|
||||
|
||||
// @public
|
||||
export function registerDispatcher(eventContract: UnrenamedEventContract, dispatcher: EventDispatcher): void;
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
* found in the LICENSE file at https://angular.dev/license
|
||||
*/
|
||||
|
||||
import {Restriction} from './restriction';
|
||||
import {
|
||||
EarlyJsactionDataContainer,
|
||||
addEvents,
|
||||
@@ -50,7 +49,6 @@ export function getAppScopedQueuedEventInfos(
|
||||
* window.
|
||||
*/
|
||||
export function registerAppScopedDispatcher(
|
||||
restriction: Restriction,
|
||||
appId: string,
|
||||
dispatcher: (eventInfo: EventInfo) => void,
|
||||
dataContainer: EarlyJsactionDataContainer = window,
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
* found in the LICENSE file at https://angular.dev/license
|
||||
*/
|
||||
|
||||
import {Restriction} from './restriction';
|
||||
import {
|
||||
addEvents,
|
||||
createEarlyJsactionData,
|
||||
@@ -33,10 +32,7 @@ export function getGlobalQueuedEventInfos() {
|
||||
}
|
||||
|
||||
/** Registers a dispatcher function on the `EarlyJsactionData` present on the window. */
|
||||
export function registerGlobalDispatcher(
|
||||
restriction: Restriction,
|
||||
dispatcher: (eventInfo: EventInfo) => void,
|
||||
) {
|
||||
export function registerGlobalDispatcher(dispatcher: (eventInfo: EventInfo) => void) {
|
||||
registerDispatcher(window._ejsa, dispatcher);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user