You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2018/03/07 18:36:06 UTC

[royale-asjs] branch develop updated: basic button was not getting typeNames = "Button"

This is an automated email from the ASF dual-hosted git repository.

carlosrovira pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new f582c28  basic button was not getting typeNames = "Button"
f582c28 is described below

commit f582c28480ac32621721450013a15cddb604a26d
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Wed Mar 7 19:36:00 2018 +0100

    basic button was not getting typeNames = "Button"
---
 .../Basic/src/main/royale/org/apache/royale/html/Button.as    | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/Button.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/Button.as
index d1dfedb..f69b1d1 100644
--- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/Button.as
+++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/Button.as
@@ -187,6 +187,17 @@ package org.apache.royale.html
 		{
 			super();
 		}
+
+        /**
+		 * @private
+		 */
+		COMPILE::JS
+		override protected function createElement():WrappedHTMLElement
+		{
+			super.createElement();
+			typeNames = "Button";
+			return element;
+		}
 	}
     
 }

-- 
To stop receiving notification emails like this one, please contact
carlosrovira@apache.org.