flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From carlosrov...@apache.org
Subject [2/7] git commit: [flex-asjs] [refs/heads/feature/mdl] - fix MDL swc to use the correct Button
Date Mon, 17 Oct 2016 06:44:08 GMT
fix MDL swc to use the correct Button


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

Branch: refs/heads/feature/mdl
Commit: b68d7862ee774c9970541883aed564dc2f39370c
Parents: 4de4ab4
Author: Alex Harui <aharui@apache.org>
Authored: Sun Oct 16 21:25:09 2016 -0700
Committer: Carlos Rovira <carlosrovira@apache.org>
Committed: Mon Oct 17 08:43:06 2016 +0200

----------------------------------------------------------------------
 .../src/main/flex/org/apache/flex/mdl/Button.as                 | 5 +++--
 .../MaterialDesignLite/src/main/resources/mdl-manifest.xml      | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b68d7862/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 11f218c..7f836f6 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
@@ -66,8 +66,9 @@ package org.apache.flex.mdl
         override protected function createElement():WrappedHTMLElement
         {
             var button:HTMLButtonElement;
-
-            element = button = document.createElement('button') as HTMLButtonElement;
+            
+            button = document.createElement('button') as HTMLButtonElement;
+            element = button as WrappedHTMLElement;
             button.className = 'mdl-button mdl-js-button mdl-button--fab mdl-button--colored';
             
             positioner = element;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b68d7862/frameworks/projects/MaterialDesignLite/src/main/resources/mdl-manifest.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/MaterialDesignLite/src/main/resources/mdl-manifest.xml b/frameworks/projects/MaterialDesignLite/src/main/resources/mdl-manifest.xml
index 68dffad..897aab5 100644
--- a/frameworks/projects/MaterialDesignLite/src/main/resources/mdl-manifest.xml
+++ b/frameworks/projects/MaterialDesignLite/src/main/resources/mdl-manifest.xml
@@ -21,7 +21,7 @@
 
 <componentPackage>
 
-    <component id="Button" class="org.apache.flex.html.Button"  lookupOnly="true" />
+    <component id="Button" class="org.apache.flex.mdl.Button"/>
     <component id="TextInput" class="org.apache.flex.html.TextInput"  lookupOnly="true"
/>
 
 </componentPackage>


Mime
View raw message