Upgrade should wait for other beads (e.g. IDataProviderItemRendererMapper) to 
do their thing


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

Branch: refs/heads/feature/strand-work
Commit: 9dac303cbf5c4bf7dd2a3f2f2a37e2d809fc281b
Parents: 253e73b
Author: DESKTOP-RH4S838\Yishay <yishayj...@hotmail.com>
Authored: Mon Aug 7 13:48:39 2017 +0300
Committer: DESKTOP-RH4S838\Yishay <yishayj...@hotmail.com>
Committed: Mon Aug 7 13:48:39 2017 +0300

----------------------------------------------------------------------
 .../src/main/flex/org/apache/flex/mdl/Menu.as             | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9dac303c/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Menu.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Menu.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Menu.as
index bc69fc4..193addd 100644
--- 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Menu.as
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Menu.as
@@ -18,6 +18,7 @@
 
////////////////////////////////////////////////////////////////////////////////
 package org.apache.flex.mdl
 {
+       import org.apache.flex.events.Event;
        import org.apache.flex.html.List;
        import org.apache.flex.mdl.beads.UpgradeElement;
 
@@ -58,9 +59,14 @@ package org.apache.flex.mdl
                        super();
 
             className = ""; //set to empty string avoid 'undefined' output 
when no class selector is assigned by user;
-            addBead(new UpgradeElement());
+                       addEventListener("beadsAdded", addUpgradeBead);
         }
-
+               
+               protected function addUpgradeBead(event:Event):void
+               {
+                       addBead(new UpgradeElement());  
+               }
+               
         /**
          *  Default position for Menu in MDL is bottom/left (or no class 
selector specified)
          *

Reply via email to