From: Matt S Trout Date: Wed, 26 May 2010 19:51:45 +0000 (+0100) Subject: revert code stream change - caused an infinite loop X-Git-Tag: release_0.009004~65 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FHTML-Zoom.git;a=commitdiff_plain;h=7c631a278fd0053037a02843e46f0f6c780f1414 revert code stream change - caused an infinite loop --- diff --git a/lib/HTML/Zoom/StreamUtils.pm b/lib/HTML/Zoom/StreamUtils.pm index 6c571fc..c30500c 100644 --- a/lib/HTML/Zoom/StreamUtils.pm +++ b/lib/HTML/Zoom/StreamUtils.pm @@ -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')) {