You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@click.apache.org by sa...@apache.org on 2009/05/01 13:24:38 UTC

svn commit: r770637 - /incubator/click/trunk/click/framework/src/org/apache/click/control/Form.java

Author: sabob
Date: Fri May  1 11:24:37 2009
New Revision: 770637

URL: http://svn.apache.org/viewvc?rev=770637&view=rev
Log:
no need to scan recursively when removing field

Modified:
    incubator/click/trunk/click/framework/src/org/apache/click/control/Form.java

Modified: incubator/click/trunk/click/framework/src/org/apache/click/control/Form.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/framework/src/org/apache/click/control/Form.java?rev=770637&r1=770636&r2=770637&view=diff
==============================================================================
--- incubator/click/trunk/click/framework/src/org/apache/click/control/Form.java (original)
+++ incubator/click/trunk/click/framework/src/org/apache/click/control/Form.java Fri May  1 11:24:37 2009
@@ -858,7 +858,7 @@
      * @return true if the named field was removed or false otherwise
      */
     public boolean removeField(String name) {
-        Control control = ContainerUtils.findControlByName(this, name);
+        Control control = getControl(name);
 
         if (control != null) {
             return remove(control);