[Jifty-commit] r4152 - jifty/trunk/lib/Jifty

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Wed Sep 26 08:52:42 EDT 2007


Author: sunnavy
Date: Wed Sep 26 08:52:27 2007
New Revision: 4152

Modified:
   jifty/trunk/lib/Jifty/Client.pm
   jifty/trunk/lib/Jifty/Collection.pm

Log:
doc fixes

Modified: jifty/trunk/lib/Jifty/Client.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Client.pm	(original)
+++ jifty/trunk/lib/Jifty/Client.pm	Wed Sep 26 08:52:27 2007
@@ -100,13 +100,11 @@
     # For each field name given, set the field's value
     for my $arg (keys %args) {
         my $input = $action_form->find_input("J:A:F-$arg-$moniker");
-        unless ($input) {
-            return;
-        } 
+        return unless $input;
         $input->value($args{$arg});
     } 
 
-    # Return the form in case they want to do soemthing with it
+    # Return the form in case they want to do something with it
     return $action_form;
 }
 
@@ -276,7 +274,7 @@
 
 Finds the error span on the current page for the name FIELD in the
 action MONIKER, and returns the text (tags stripped) from it.  (If the
-field can't be found.
+field can't be found, return undef).
 
 =cut
 

Modified: jifty/trunk/lib/Jifty/Collection.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Collection.pm	(original)
+++ jifty/trunk/lib/Jifty/Collection.pm	Wed Sep 26 08:52:27 2007
@@ -44,9 +44,9 @@
 
 =head2 results_are_readable
 
-If your results from the query is guaranteed to be readable by
+If your results from the query are guaranteed to be readable by
 current_user, you can create the collection with
-C<results_are_readable => 1>.  This is cause check_read_rights to
+C<results_are_readable => 1>.  This causes check_read_rights to
 bypass normal current_user_can checks.
 
 =cut


More information about the Jifty-commit mailing list