Skip to content

Commit e286d3c

Browse files
iterianithePunderWoman
authored andcommitted
refactor(core): Remove lambda from error message. (angular#56161)
This should've been in the previous PR, but a bad rebase removed it. PR Close angular#56161
1 parent b9b78d1 commit e286d3c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,10 @@ const PREVENT_DEFAULT_ERROR_MESSAGE_DETAILS =
3030
'effect. You can check whether an event is being replayed by accessing the event phase: ' +
3131
'`event.eventPhase === EventPhase.REPLAY`.';
3232
const PREVENT_DEFAULT_ERROR_MESSAGE = `\`preventDefault\` called during event replay.`;
33-
const COMPOSED_PATH_ERROR_MESSAGE_DETAILS = () =>
34-
ngDevMode
35-
? ' Because event replay occurs after browser ' +
36-
'dispatch, `composedPath()` will be empty. Iterate parent nodes from `event.target` or ' +
37-
'`event.currentTarget` if you need to check elements in the event path.'
38-
: '';
33+
const COMPOSED_PATH_ERROR_MESSAGE_DETAILS =
34+
' Because event replay occurs after browser ' +
35+
'dispatch, `composedPath()` will be empty. Iterate parent nodes from `event.target` or ' +
36+
'`event.currentTarget` if you need to check elements in the event path.';
3937
const COMPOSED_PATH_ERROR_MESSAGE = `\`composedPath\` called during event replay.`;
4038

4139
declare global {

0 commit comments

Comments
 (0)