Skip to content

Commit

Permalink
Fix hasEvent (#872)
Browse files Browse the repository at this point in the history
  • Loading branch information
dxvladislavvolkov committed Oct 16, 2018
1 parent a0481bc commit d4b0e26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/events-strategy.ts
Expand Up @@ -12,7 +12,7 @@ export class NgEventsStrategy {
constructor(private instance: any) { }

hasEvent(name: string) {
return this.getEmitter(name).observers.length;
return this.getEmitter(name).observers.length !== 0;
}

fireEvent(name, args) {
Expand Down

0 comments on commit d4b0e26

Please sign in to comment.