Skip to content

Commit 6271a16

Browse files
refactor(core): Remove unused A11Y_CLICK_SUPPORT define. (angular#56901)
This behavior was moved to be configured by a runtime boolean, rather than a define. PR Close angular#56901
1 parent bafafb2 commit 6271a16

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

goldens/public-api/core/primitives/event-dispatch/index.api.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ export interface EarlyJsactionDataContainer {
2121
// @public
2222
export class EventContract implements UnrenamedEventContract {
2323
constructor(containerManager: EventContractContainerManager, useActionResolver?: false | undefined);
24-
// (undocumented)
25-
static A11Y_CLICK_SUPPORT: boolean;
2624
addA11yClickSupport(): void;
2725
addEvent(eventType: string, prefixedEventType?: string): void;
2826
cleanUp(): void;

packages/core/primitives/event-dispatch/src/event_contract_defines.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
/**
10-
* @define Support for accessible click actions. This flag can be overridden in
11-
* a build rule.
12-
*/
13-
export const A11Y_CLICK_SUPPORT = false;
14-
159
/**
1610
* @define Support for the non-bubbling mouseenter and mouseleave events. This
1711
* flag can be overridden in a build rule.

packages/core/primitives/event-dispatch/src/eventcontract.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
import {EarlyJsactionData, EarlyJsactionDataContainer} from './earlyeventcontract';
3434
import * as eventLib from './event';
3535
import {EventContractContainerManager} from './event_contract_container';
36-
import {A11Y_CLICK_SUPPORT, MOUSE_SPECIAL_SUPPORT} from './event_contract_defines';
36+
import {MOUSE_SPECIAL_SUPPORT} from './event_contract_defines';
3737
import * as eventInfoLib from './event_info';
3838
import {EventType, NON_BUBBLING_MOUSE_EVENTS} from './event_type';
3939
import {Restriction} from './restriction';
@@ -75,7 +75,6 @@ type EventHandler = (eventType: string, event: Event, container: Element) => voi
7575
* be delay loaded in a generic way.
7676
*/
7777
export class EventContract implements UnrenamedEventContract {
78-
static A11Y_CLICK_SUPPORT = A11Y_CLICK_SUPPORT;
7978
static MOUSE_SPECIAL_SUPPORT = MOUSE_SPECIAL_SUPPORT;
8079

8180
private containerManager: EventContractContainerManager | null;

0 commit comments

Comments
 (0)