Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(angular): always dispatch lifecycle events
  • Loading branch information
manucorporat committed Jul 25, 2018
1 parent 8492c19 commit 5677daa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion angular/src/providers/angular-delegate.ts
Expand Up @@ -106,7 +106,7 @@ const LIFECYCLES = [
export function bindLifecycleEvents(instance: any, element: HTMLElement) {
LIFECYCLES.forEach(eventName => {
element.addEventListener(eventName, (ev: any) => {
if (typeof instance[eventName] === 'function' && ev.detail) {
if (typeof instance[eventName] === 'function') {
instance[eventName](ev.detail);
}
});
Expand Down

0 comments on commit 5677daa

Please sign in to comment.