You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2020/07/14 21:08:36 UTC

[GitHub] [royale-asjs] brianraymes opened a new pull request #887: ArrayListView: Dispatch lengthChanged binding event if necessary after a refresh

brianraymes opened a new pull request #887:
URL: https://github.com/apache/royale-asjs/pull/887


   ArrayListView does not dispatch a "lengthChanged" event after performing a refresh which can alter the length from a filter.
   
   **Steps to Reproduce**
   
   1. _Create a bindable ArrayListView_
   
   ```
   [Bindable]
   public var names:ArrayListView = new ArrayListView(new ArrayList(["A", "B", "C"]));
   ```
   
   2. _Bind something to the length property_
   
   ```
   <j:Label text="Length: {names.length}"/>
   ```
   
   3. _Add a filter and refresh_
   
   ```
   names.filterFunction = filterFunctionThatRemovesB;
   names.refresh();
   ```
   
   **Expected Results**
   
   Label is updated from `Length: 3` to `Length: 2`.
   
   **Actual Results**
   
   Label is not updated and remains as `Length: 3`.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] carlosrovira commented on pull request #887: ArrayListView: Dispatch lengthChanged binding event if necessary after a refresh

Posted by GitBox <gi...@apache.org>.
carlosrovira commented on pull request #887:
URL: https://github.com/apache/royale-asjs/pull/887#issuecomment-659327148


   Thanks for you PR Brian! Keep it coming! :)


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] carlosrovira merged pull request #887: ArrayListView: Dispatch lengthChanged binding event if necessary after a refresh

Posted by GitBox <gi...@apache.org>.
carlosrovira merged pull request #887:
URL: https://github.com/apache/royale-asjs/pull/887


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org