Skip to content

Commit c072818

Browse files
committed
fix: fix all private symbols across library to be multi-bundeled-prof
1 parent 593ad50 commit c072818

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

packages/esl/src/esl-event-listener/core/descriptors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import type {
99
} from './types';
1010

1111
/** Key to store listeners on the host */
12-
const DESCRIPTORS = (window.Symbol || String)('__esl_descriptors');
12+
const DESCRIPTORS = Symbol.for('__esl_descriptors');
1313

1414
/**
1515
* @param host - host object

packages/esl/src/esl-event-listener/core/listener.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import type {
1818
} from './types';
1919

2020
/** Key to store listeners on the host */
21-
const LISTENERS = (window.Symbol || String)('__esl_listeners');
21+
const LISTENERS = Symbol.for('__esl_listeners');
2222

2323
/**
2424
* Splits and deduplicates event string

packages/esl/src/esl-mixin-element/ui/esl-mixin-registry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type {
55
} from './esl-mixin-element';
66

77
// Private key to store mixin instances
8-
const STORE = (window.Symbol || String)('__esl_mixins');
8+
const STORE = Symbol.for('__esl_mixins');
99

1010
// Singleton for registry
1111
let global: ESLMixinRegistry;

packages/esl/src/esl-utils/dom/events/target.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {uniq} from '../../misc/array';
22
import {overrideEvent} from './misc';
33

44
/** Key to store listeners on the {@link SyntheticEventTarget} instance*/
5-
const LISTENERS: unique symbol = (window.Symbol || String)('_listeners') as any;
5+
const LISTENERS: unique symbol = Symbol('_listeners'); // private
66

77
/**
88
* Synthetic implementation of EventTarget

packages/esl/src/esl-utils/misc/uid.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const SEQUENCE_KEY: unique symbol = ((window.Symbol || String)('__esl_sequences__')) as any;
1+
const SEQUENCE_KEY: unique symbol = Symbol.for('__esl_sequences');
22
const ns = window || global;
33
const sequences = ns[SEQUENCE_KEY] || new Map<string, number>();
44
ns[SEQUENCE_KEY] = sequences;

0 commit comments

Comments
 (0)