Skip to content

Commit

Permalink
fix(cordova): fix resume event in cordova browser (#15945)
Browse files Browse the repository at this point in the history
Fixes #15944
  • Loading branch information
MarkChrisLevy authored and adamdbradley committed Oct 23, 2018
1 parent ed69372 commit 4318520
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion angular/src/util/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function inputs(instance: any, el: ElementRef, props: string[]) {

export function proxyEvent<T>(emitter: EventEmitter<T>, el: EventTarget, eventName: string) {
el.addEventListener(eventName, (ev) => {
emitter.emit((ev as any).detail as T);
emitter.emit(ev ? (ev as any).detail as T : undefined);
});
}

Expand Down

0 comments on commit 4318520

Please sign in to comment.