flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pio...@apache.org
Subject git commit: [flex-asjs] [refs/heads/develop] - - Make MDL Menu upgradable - Use "initComplete" in UpgradeElement
Date Mon, 01 May 2017 11:28:51 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/develop f63a86a70 -> c22c0baab


- Make MDL Menu upgradable
- Use "initComplete" in UpgradeElement


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

Branch: refs/heads/develop
Commit: c22c0baabe4b6c49e21adbd102becaef7f5c5f50
Parents: f63a86a
Author: piotrz <piotrz@apache.org>
Authored: Mon May 1 13:28:46 2017 +0200
Committer: piotrz <piotrz@apache.org>
Committed: Mon May 1 13:28:46 2017 +0200

----------------------------------------------------------------------
 .../src/main/flex/org/apache/flex/mdl/Menu.as                  | 2 ++
 .../src/main/flex/org/apache/flex/mdl/beads/UpgradeElement.as  | 6 +++---
 2 files changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c22c0baa/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 856193e..b151d0d 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
@@ -19,6 +19,7 @@
 package org.apache.flex.mdl
 {
 	import org.apache.flex.html.DataContainer;
+    import org.apache.flex.mdl.beads.UpgradeElement;
 
     COMPILE::JS
     {
@@ -57,6 +58,7 @@ 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());
         }
 
         /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c22c0baa/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/beads/UpgradeElement.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/beads/UpgradeElement.as
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/beads/UpgradeElement.as
index e38195e..3a2e448 100644
--- a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/beads/UpgradeElement.as
+++ b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/beads/UpgradeElement.as
@@ -94,12 +94,12 @@ package org.apache.flex.mdl.beads
         public function set strand(value:IStrand):void
         {
             _strand = value;
-            IEventDispatcher(value).addEventListener("beadsAdded", beadsAddedHandler);
+            IEventDispatcher(value).addEventListener("initComplete", initCompleteHandler);
         }
 
-        private function beadsAddedHandler(event:Event):void
+        private function initCompleteHandler(event:Event):void
         {
-            IEventDispatcher(_strand).removeEventListener("beadsAdded", beadsAddedHandler);
+            IEventDispatcher(_strand).removeEventListener("initComplete", initCompleteHandler);
             COMPILE::JS
             {
                 upgradeElement();


Mime
View raw message