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/10/18 14:03:10 UTC
[royale-asjs] branch develop updated: Revert "fix a typo when an
item is already selected but the index is not synced correctly (fix #921)"
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 b290b15 Revert "fix a typo when an item is already selected but the index is not synced correctly (fix #921)"
b290b15 is described below
commit b290b15cbddb8587a936262dd94dc1ac9d155479
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Sun Oct 18 16:02:52 2020 +0200
Revert "fix a typo when an item is already selected but the index is not synced correctly (fix #921)"
This reverts commit edc132ccf214c381703c816fa90f23e179c993c4.
---
.../org/apache/royale/jewel/beads/models/ArrayListSelectionModel.as | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/models/ArrayListSelectionModel.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/models/ArrayListSelectionModel.as
index f44cdd3..d9d2355 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/models/ArrayListSelectionModel.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/models/ArrayListSelectionModel.as
@@ -325,7 +325,7 @@ package org.apache.royale.jewel.beads.models
{
if (value == _selectedItem) {
if (_dataProvider) {
- if (_selectedIndex != _dataProvider.getItemIndex(value)) {
+ if (_selectedIndex != (_selectedIndex = _dataProvider.getItemIndex(value))) {
dispatchChange("selectionChanged");
}
}