Make ->add_after("foo") etc. from HTML::Zoom::FilterBuilder work
[catagits/HTML-Zoom.git] / lib / HTML / Zoom / FilterBuilder.pm
index 50398b3..940e736 100644 (file)
@@ -151,7 +151,7 @@ sub add_after {
   my $coll_proto = $self->collect({ passthrough => 1 });
   sub {
     my ($evt) = @_;
-    my $emit = $self->_stream_from_array(@$events);
+    my $emit = $self->_stream_from_proto($events);
     my $coll = &$coll_proto;
     return ref($coll) eq 'HASH' # single event, no collect
       ? [ $coll, $emit ]