From db6a5b04124224290f5cbc7476b8e20aa5f85c05 Mon Sep 17 00:00:00 2001 From: Angel Ortega Date: Wed, 12 Nov 2008 13:58:36 +0100 Subject: [PATCH] Fixed the calling to each source's data() in init. --- Gruta.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Gruta.pm b/Gruta.pm index 7ba1dfd..b38ccb9 100644 --- a/Gruta.pm +++ b/Gruta.pm @@ -388,10 +388,10 @@ sub new { if (ref($g->{sources}) ne 'ARRAY') { $g->{sources} = [ $g->{sources} ]; + } - foreach my $s (@{$g->{sources}}) { - $s->data($g); - } + foreach my $s (@{$g->{sources}}) { + $s->data($g); } if ($g->{renderers}) { -- 2.11.4.GIT