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 2018/09/16 21:45:15 UTC

[royale-asjs] branch develop updated: ListView was dispatching a CHANGE event and shouldn't since this is mouse controller selectedHandler responsability

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 aa9b155  ListView was dispatching a CHANGE event and shouldn't since this is mouse controller selectedHandler responsability
aa9b155 is described below

commit aa9b155a653d9fc8f284aeb139e7822d332e2b0e
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Sun Sep 16 23:45:04 2018 +0200

    ListView was dispatching a CHANGE event and shouldn't since this is mouse controller selectedHandler responsability
---
 .../src/main/royale/org/apache/royale/jewel/beads/views/ListView.as  | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/ListView.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/ListView.as
index e9e802b..bc14ecc 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/ListView.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/ListView.as
@@ -123,11 +123,6 @@ package org.apache.royale.jewel.beads.views
 				ir.selected = true;
 
 			lastSelectedIndex = listModel.selectedIndex;
-
-			// avoid throw change event as part of select proper item at initialization time
-			if(event != null) {
-				IEventDispatcher(_strand).dispatchEvent(new Event(Event.CHANGE));
-			}
 		}
 
 		protected var lastRollOverIndex:int = -1;