summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2010-06-11 22:55:28 -0400
committerJason Woodward2010-06-11 22:55:28 -0400
commit0f3d78e1eacdf43d04d13f398cf7596176440076 (patch)
tree382d9960bc1a5bb12161f8dd07640a7b87426161
parent5ecda0559c974fec0b81e3081285299cdcf48e1f (diff)
downloadJaos-WebApp-0f3d78e1eacdf43d04d13f398cf7596176440076.tar.gz
run post post_dispatch hooks in reverse order
-rw-r--r--Changes3
-rw-r--r--lib/Jaos/WebApp.pm2
2 files changed, 3 insertions, 2 deletions
diff --git a/Changes b/Changes
index f282fb5..7203f0b 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,6 @@
-0.3 June 09, 2010
+0.3 June 11, 2010
+ * run post post_dispatch hooks in reverse order
* added ::Render::Data
* properly report plugin register failure
* Updated ParamConstraint
diff --git a/lib/Jaos/WebApp.pm b/lib/Jaos/WebApp.pm
index 0fcb135..3262a6f 100644
--- a/lib/Jaos/WebApp.pm
+++ b/lib/Jaos/WebApp.pm
@@ -100,7 +100,7 @@ sub run
# post dispatch hook here
$self->log->debug("running post dispatch hooks");
- $_->($self) for @{$self->{run_hooks}->{post_dispatch}};
+ $_->($self) for reverse @{$self->{run_hooks}->{post_dispatch}};
delete $self->{ qw/stash res req/};
return $res->finalize;