flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject git commit: [flex-asjs] [refs/heads/feature/mdl] - fix MDL swc to use the correct Button
Date Mon, 17 Oct 2016 04:25:14 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/feature/mdl 2b96b458d -> fa21a4cfb


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/fa21a4cf
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/fa21a4cf
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/fa21a4cf

Branch: refs/heads/feature/mdl
Commit: fa21a4cfb2b4bb5405bfe84ff984baead345e803
Parents: 2b96b45
Author: Alex Harui <aharui@apache.org>
Authored: Sun Oct 16 21:25:09 2016 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Sun Oct 16 21:25:09 2016 -0700

----------------------------------------------------------------------
 .../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/fa21a4cf/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/fa21a4cf/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