Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
avoid a method call in Mojo::EventEmitter
  • Loading branch information
kraih committed Oct 28, 2014
1 parent 65859a2 commit 3066f7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojo/EventEmitter.pm
Expand Up @@ -39,7 +39,7 @@ sub emit_safe {
return $self;
}

sub has_subscribers { !!@{shift->subscribers(shift)} }
sub has_subscribers { !!@{shift->{events}{shift()} || []} }

sub on {
my ($self, $name, $cb) = @_;
Expand Down

0 comments on commit 3066f7a

Please sign in to comment.