click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r779224 - /incubator/click/trunk/click/framework/src/org/apache/click/ControlRegistry.java
Date Wed, 27 May 2009 16:09:10 GMT
Author: sabob
Date: Wed May 27 16:09:10 2009
New Revision: 779224

URL: http://svn.apache.org/viewvc?rev=779224&view=rev
Log:
modified registry to fire and forget events and listeners.

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

Modified: incubator/click/trunk/click/framework/src/org/apache/click/ControlRegistry.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/framework/src/org/apache/click/ControlRegistry.java?rev=779224&r1=779223&r2=779224&view=diff
==============================================================================
--- incubator/click/trunk/click/framework/src/org/apache/click/ControlRegistry.java (original)
+++ incubator/click/trunk/click/framework/src/org/apache/click/ControlRegistry.java Wed May
27 16:09:10 2009
@@ -239,8 +239,12 @@
         boolean continueProcessing = true;
 
         for (int i = 0, size = eventSourceList.size(); i < size; i++) {
-            Control source = (Control) eventSourceList.get(i);
-            ActionListener listener = (ActionListener) eventListenerList.get(i);
+            Control source = (Control) eventSourceList.get(0);
+            ActionListener listener = (ActionListener) eventListenerList.get(0);
+
+            // Pop the first entry in the list
+            eventSourceList.remove(0);
+            eventListenerList.remove(0);
 
             if (!fireActionEvent(context, source, listener, event)) {
                 continueProcessing = false;



Mime
View raw message