You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2020/07/08 21:50:19 UTC

[royale-asjs] branch develop updated: ArrayList: make length binding update when an item is added or removed

This is an automated email from the ASF dual-hosted git repository.

carlosrovira pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new b4e42c2  ArrayList: make length binding update when an item is added or removed
     new f450081  Merge pull request #879 from brianraymes/develop
b4e42c2 is described below

commit b4e42c26c6cc72e186509a64a1695054353bfa83
Author: Brian Raymes <br...@teotech.com>
AuthorDate: Wed Jul 1 17:18:00 2020 -0700

    ArrayList: make length binding update when an item is added or removed
---
 .../src/main/royale/org/apache/royale/collections/ArrayList.as        | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/frameworks/projects/Collections/src/main/royale/org/apache/royale/collections/ArrayList.as b/frameworks/projects/Collections/src/main/royale/org/apache/royale/collections/ArrayList.as
index 86e7553..2a2e8cc 100644
--- a/frameworks/projects/Collections/src/main/royale/org/apache/royale/collections/ArrayList.as
+++ b/frameworks/projects/Collections/src/main/royale/org/apache/royale/collections/ArrayList.as
@@ -278,6 +278,8 @@ package org.apache.royale.collections
 			collectionEvent.item = item;
 			collectionEvent.index = index;
 			dispatchEvent(collectionEvent);
+
+			dispatchEvent(new Event("lengthChanged"));
 		}
 
 		/**
@@ -364,6 +366,8 @@ package org.apache.royale.collections
 			collectionEvent.index = index;
             dispatchEvent(collectionEvent);
 
+			dispatchEvent(new Event("lengthChanged"));
+
 			return removed;
 		}