This is an automated email from the ASF dual-hosted git repository.
harbs 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 7577cd4 class should be property for HTML Elements
7577cd4 is described below
commit 7577cd493d71420f7a1dd7d0db9a97e67ea5e150
Author: Harbs <[email protected]>
AuthorDate: Tue Jan 14 11:00:07 2020 +0200
class should be property for HTML Elements
---
.../royale/org/apache/royale/html/NodeElementBase.as | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git
a/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/NodeElementBase.as
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/NodeElementBase.as
index 48daa4f..c9e8629 100644
---
a/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/NodeElementBase.as
+++
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/NodeElementBase.as
@@ -57,5 +57,25 @@ package org.apache.royale.html
}
}
+
+ public function get class():String
+ {
+ COMPILE::SWF
+ {
+ return "";
+ }
+ COMPILE::JS
+ {
+ return element.getAttribute("class");
+ }
+ }
+
+ public function set class(value:String):void
+ {
+ COMPILE::JS
+ {
+ element.setAttribute("class",value);
+ }
+ }
}
}
\ No newline at end of file