summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2012-10-15 01:13:18 -0500
committerJesse Luehrs <doy@tozt.net>2012-10-15 02:03:58 -0500
commit4e3bf34027567183336f95153ae94019c468c701 (patch)
treed399b434346edb697b35e8dd94ba0417a904fc66
parent0435a4616d2eaf1198f7c2e3acdc121a958e8494 (diff)
downloadtext-handlebars-4e3bf34027567183336f95153ae94019c468c701.tar.gz
text-handlebars-4e3bf34027567183336f95153ae94019c468c701.zip
this weaken is unnecessary
-rw-r--r--lib/Text/Handlebars.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Text/Handlebars.pm b/lib/Text/Handlebars.pm
index 2e4770f..6fed7a7 100644
--- a/lib/Text/Handlebars.pm
+++ b/lib/Text/Handlebars.pm
@@ -138,12 +138,11 @@ sub default_functions {
}
if (ref($value) eq 'HASH') {
- weaken(my $vars_copy = $vars);
return {
'@index' => $i,
%$vars,
%$value,
- '..' => $vars_copy,
+ '..' => $vars,
};
}
else {