You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by gb...@apache.org on 2009/06/24 02:33:10 UTC
svn commit: r787876 - in
/incubator/pivot/trunk/core/src/org/apache/pivot/collections:
ArrayList.java LinkedList.java
Author: gbrown
Date: Wed Jun 24 00:33:10 2009
New Revision: 787876
URL: http://svn.apache.org/viewvc?rev=787876&view=rev
Log:
Always fire itemUpdated() when List#update() is called.
Modified:
incubator/pivot/trunk/core/src/org/apache/pivot/collections/ArrayList.java
incubator/pivot/trunk/core/src/org/apache/pivot/collections/LinkedList.java
Modified: incubator/pivot/trunk/core/src/org/apache/pivot/collections/ArrayList.java
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/core/src/org/apache/pivot/collections/ArrayList.java?rev=787876&r1=787875&r2=787876&view=diff
==============================================================================
--- incubator/pivot/trunk/core/src/org/apache/pivot/collections/ArrayList.java (original)
+++ incubator/pivot/trunk/core/src/org/apache/pivot/collections/ArrayList.java Wed Jun 24 00:33:10 2009
@@ -204,10 +204,10 @@
}
items[index] = item;
-
- listListeners.itemUpdated(this, index, previousItem);
}
+ listListeners.itemUpdated(this, index, previousItem);
+
return previousItem;
}
Modified: incubator/pivot/trunk/core/src/org/apache/pivot/collections/LinkedList.java
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/core/src/org/apache/pivot/collections/LinkedList.java?rev=787876&r1=787875&r2=787876&view=diff
==============================================================================
--- incubator/pivot/trunk/core/src/org/apache/pivot/collections/LinkedList.java (original)
+++ incubator/pivot/trunk/core/src/org/apache/pivot/collections/LinkedList.java Wed Jun 24 00:33:10 2009
@@ -216,10 +216,10 @@
// Update the item
node.item = item;
-
- listListeners.itemUpdated(this, index, previousItem);
}
+ listListeners.itemUpdated(this, index, previousItem);
+
return previousItem;
}