From 90ec7c86880fbd5ecc3ab09b111194a90c0ab06a Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 27 Jun 2013 16:35:35 -0400 Subject: turn this into a generic pub/sub mechanism --- lib/Reply.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/Reply.pm') diff --git a/lib/Reply.pm b/lib/Reply.pm index e1e31d2..57e9166 100644 --- a/lib/Reply.pm +++ b/lib/Reply.pm @@ -194,7 +194,7 @@ sub _load_plugin { $plugin = $plugin->new( %$opts, - tab_handler => sub { $weakself->_tab_handler(@_) }, + publisher => sub { $weakself->_publish(@_) }, ); } @@ -261,10 +261,10 @@ sub _loop { $self->_chained_plugin('loop', 1); } -sub _tab_handler { +sub _publish { my $self = shift; - $self->_concatenate_plugin('tab_handler', @_); + $self->_concatenate_plugin(@_); } sub _wrapped_plugin { -- cgit v1.2.3-54-g00ecf