[Jifty-commit] r591 - in jifty/trunk: lib/Jifty

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Fri Feb 17 00:36:52 EST 2006


Author: alexmv
Date: Fri Feb 17 00:36:51 2006
New Revision: 591

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/lib/Jifty/Request.pm

Log:
 r9149 at zoq-fot-pik:  chmrr | 2006-02-17 00:34:53 -0500
  * Actually return what I changed the docs to return;
    Jifty::Request::add_* returns object added


Modified: jifty/trunk/lib/Jifty/Request.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Request.pm	(original)
+++ jifty/trunk/lib/Jifty/Request.pm	Fri Feb 17 00:36:51 2006
@@ -164,8 +164,7 @@
             arguments => $f->{args},
             wrapper   => $f->{wrapper} || 0,
         );
-        while ($f->{parent}) {
-            $f = $f->{parent};
+        while ($f = $f->{parent}) {
             $current = $current->parent(Jifty::Request::Fragment->new({
                 name => $f->{name},
                 path => $f->{path},
@@ -579,7 +578,7 @@
 
     $self->{'actions'}{$args{'moniker'}} = $action;
 
-    $self;
+    return $action;
 } 
 
 =head2 remove_action MONIKER
@@ -657,7 +656,7 @@
 
     $self->{'fragments'}{$args{'name'}} = $fragment;
 
-    return $self;
+    return $fragment;
 }
 
 =head2 do_mapping PARAMHASH


More information about the Jifty-commit mailing list