You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by pe...@apache.org on 2017/05/01 19:40:25 UTC

git commit: [flex-asjs] [refs/heads/develop] - DataProviderCollectionChangeNotifier should use changeEventName if provided.

Repository: flex-asjs
Updated Branches:
  refs/heads/develop e59094db8 -> 2fdd7b9f3


DataProviderCollectionChangeNotifier should use changeEventName if provided.


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/2fdd7b9f
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/2fdd7b9f
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/2fdd7b9f

Branch: refs/heads/develop
Commit: 2fdd7b9f3a3d90185bbe7ac46266f76c0c15c88c
Parents: e59094d
Author: Peter Ent <pe...@apache.org>
Authored: Mon May 1 15:40:24 2017 -0400
Committer: Peter Ent <pe...@apache.org>
Committed: Mon May 1 15:40:24 2017 -0400

----------------------------------------------------------------------
 .../flex/html/beads/DataProviderCollectionChangeNotifier.as      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2fdd7b9f/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/DataProviderCollectionChangeNotifier.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/DataProviderCollectionChangeNotifier.as b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/DataProviderCollectionChangeNotifier.as
index 2d58795..9a0f299 100644
--- a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/DataProviderCollectionChangeNotifier.as
+++ b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/DataProviderCollectionChangeNotifier.as
@@ -56,10 +56,10 @@ package org.apache.flex.html.beads
 			}
 			else
 			{
-                dataProvider.removeEventListener("collectionChanged", handleCollectionChanged);
+				dataProvider.removeEventListener(changeEventName == null ? "collectionChanged":changeEventName, handleCollectionChanged);
 			}
 
-            dataProvider.addEventListener("collectionChanged", handleCollectionChanged);
+			dataProvider.addEventListener(changeEventName == null ? "collectionChanged":changeEventName, handleCollectionChanged);
 		}
 
 		private function handleCollectionChanged(event:Event):void