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] - Dispatch event through the strand for Snackbar component
Date Thu, 29 Dec 2016 10:24:54 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/develop 1266625d7 -> 05d7456e5


Dispatch event through the strand for Snackbar component


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

Branch: refs/heads/develop
Commit: 05d7456e58e6d8a008c85377489c0ee823e5f4d4
Parents: 1266625
Author: piotrz <piotrz@apache.org>
Authored: Thu Dec 29 11:24:47 2016 +0100
Committer: piotrz <piotrz@apache.org>
Committed: Thu Dec 29 11:24:47 2016 +0100

----------------------------------------------------------------------
 .../org/apache/flex/mdl/beads/models/SnackbarModel.as    | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/05d7456e/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/beads/models/SnackbarModel.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/beads/models/SnackbarModel.as
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/beads/models/SnackbarModel.as
index d86f081..635d9ed 100644
--- a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/beads/models/SnackbarModel.as
+++ b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/beads/models/SnackbarModel.as
@@ -18,12 +18,16 @@
 ////////////////////////////////////////////////////////////////////////////////
 package org.apache.flex.mdl.beads.models
 {
+    import org.apache.flex.core.IStrand;
+    import org.apache.flex.core.UIBase;
     import org.apache.flex.events.Event;
 
     public class SnackbarModel extends ToastModel implements ISnackbarModel
     {
         private var _actionText:String = "";
 
+        private var _strand:IStrand;
+
         public function SnackbarModel()
         {
             super();
@@ -49,9 +53,14 @@ package org.apache.flex.mdl.beads.models
             };
         }
 
+        override public function set strand(value:IStrand):void
+        {
+            _strand = value;
+        }
+
         private function onActionHandler(event:Event):void
         {
-            dispatchEvent(new Event("action"));
+            (UIBase)(_strand).dispatchEvent(new Event("action"));
         }
     }
 }


Mime
View raw message