[TASK] Pass targetElement explicitly for RegularEvent.delegateTo
Arrow functions keep using their own `thisArg` on invocation. To be able to avoid unscoped `function()` call and still retrieving `targetElement` it is passed explicitly as 2nd callback argument. Resolves: #91084 Releases: master Change-Id: I3f1087713827605ac8b59f18eb4a59becd67e460 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/64209 Tested-by:Andreas Fernandez <a.fernandez@scripting-base.de> Tested-by:
TYPO3com <noreply@typo3.com> Tested-by:
Oliver Hader <oliver.hader@typo3.org> Reviewed-by:
Andreas Fernandez <a.fernandez@scripting-base.de> Reviewed-by:
Oliver Hader <oliver.hader@typo3.org>
Showing
- Build/Sources/TypeScript/core/Resources/Public/TypeScript/Event/EventInterface.ts 5 additions, 1 deletion.../core/Resources/Public/TypeScript/Event/EventInterface.ts
- Build/Sources/TypeScript/core/Resources/Public/TypeScript/Event/RegularEvent.ts 1 addition, 1 deletion...pt/core/Resources/Public/TypeScript/Event/RegularEvent.ts
- typo3/sysext/core/Resources/Public/JavaScript/Event/RegularEvent.js 1 addition, 1 deletion...xt/core/Resources/Public/JavaScript/Event/RegularEvent.js
Please register or sign in to comment