flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pio...@apache.org
Subject [3/3] git commit: [flex-asjs] [refs/heads/develop] - FLEX-35269 - Add UpgradeElement as default to Button and TextField which allows create them dynamically
Date Mon, 20 Feb 2017 22:05:04 GMT
FLEX-35269 - Add UpgradeElement as default to Button and TextField which allows create them
dynamically


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

Branch: refs/heads/develop
Commit: 74ea47cbc541719fba88f4314c83054f713ca38d
Parents: 97c702b
Author: piotrz <piotrz@apache.org>
Authored: Mon Feb 20 23:04:51 2017 +0100
Committer: piotrz <piotrz@apache.org>
Committed: Mon Feb 20 23:04:51 2017 +0100

----------------------------------------------------------------------
 .../src/main/flex/org/apache/flex/mdl/Button.as                  | 2 ++
 .../src/main/flex/org/apache/flex/mdl/TextField.as               | 4 +++-
 2 files changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/74ea47cb/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Button.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Button.as
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Button.as
index 199b080..4a409b6 100644
--- a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Button.as
+++ b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Button.as
@@ -19,6 +19,7 @@
 package org.apache.flex.mdl
 {
     import org.apache.flex.html.TextButton;
+    import org.apache.flex.mdl.beads.UpgradeElement;
     import org.apache.flex.mdl.materialIcons.IMaterialIcon;
     import org.apache.flex.mdl.supportClasses.MaterialIconBase;    
     
@@ -51,6 +52,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/74ea47cb/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/TextField.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/TextField.as
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/TextField.as
index da2570f..689532f 100644
--- a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/TextField.as
+++ b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/TextField.as
@@ -17,7 +17,7 @@
 ////////////////////////////////////////////////////////////////////////////////
 package org.apache.flex.mdl
 {
-	import org.apache.flex.events.Event;
+    import org.apache.flex.mdl.beads.UpgradeElement;
 
     import org.apache.flex.mdl.supportClasses.TextFieldBase;
 
@@ -77,6 +77,8 @@ package org.apache.flex.mdl
             var div:HTMLDivElement = document.createElement('div') as HTMLDivElement;
             div.className = typeNames;
 
+            addBead(new UpgradeElement(div));
+
             input = document.createElement('input') as HTMLInputElement;
             input.setAttribute('type', 'text');
             input.className = "mdl-textfield__input";


Mime
View raw message