From cf4da82ac3f1fcf32a7be47c90c2821a181a97fe Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Wed, 29 Jul 2020 09:30:11 -0700 Subject: [PATCH] Revert "refactor(platform-browser): specify return type of parseEventName (#38089)" This reverts commit 174aac68f7cfb9760430c42a4f53b91f8a48c738. --- packages/platform-browser/src/dom/events/key_events.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/platform-browser/src/dom/events/key_events.ts b/packages/platform-browser/src/dom/events/key_events.ts index 2b13c3e381..8ac3859fbe 100644 --- a/packages/platform-browser/src/dom/events/key_events.ts +++ b/packages/platform-browser/src/dom/events/key_events.ts @@ -111,7 +111,7 @@ export class KeyEventsPlugin extends EventManagerPlugin { }); } - static parseEventName(eventName: string): {fullKey: string, domEventName: string}|null { + static parseEventName(eventName: string): {[key: string]: string}|null { const parts: string[] = eventName.toLowerCase().split('.'); const domEventName = parts.shift(); @@ -136,7 +136,10 @@ export class KeyEventsPlugin extends EventManagerPlugin { return null; } - return {domEventName, fullKey}; + const result: {[k: string]: string} = {}; + result['domEventName'] = domEventName; + result['fullKey'] = fullKey; + return result; } static getEventFullKey(event: KeyboardEvent): string {