royale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From carlosrov...@apache.org
Subject [royale-asjs] branch develop updated: basic button was not getting typeNames = "Button"
Date Wed, 07 Mar 2018 18:36:06 GMT
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 <carlosrovira@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.

Mime
View raw message