revert code stream change - caused an infinite loop
Matt S Trout [Wed, 26 May 2010 19:51:45 +0000 (20:51 +0100)]
lib/HTML/Zoom/StreamUtils.pm

index 6c571fc..c30500c 100644 (file)
@@ -41,7 +41,7 @@ sub stream_from_proto {
   } elsif ($ref eq 'ARRAY') {
     return $self->stream_from_array(@$proto);
   } elsif ($ref eq 'CODE') {
-    return $self->stream_from_code($proto);
+    return $proto->();
   } elsif ($ref eq 'SCALAR') {
     return $self->_zconfig->parser->html_to_stream($$proto);
   } elsif (Scalar::Util::blessed($proto) && $proto->can('to_stream')) {