Repository: flex-asjs Updated Branches: refs/heads/develop 40e6a5aec -> ff4c37222
When set the id in a component propagate it to html element so user could deal with it Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/ff4c3722 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/ff4c3722 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/ff4c3722 Branch: refs/heads/develop Commit: ff4c372223d08fb56380756a7184f4bbaff76606 Parents: 40e6a5a Author: Carlos Rovira <carlosrov...@apache.org> Authored: Wed Nov 16 22:53:00 2016 +0100 Committer: Carlos Rovira <carlosrov...@apache.org> Committed: Wed Nov 16 22:53:00 2016 +0100 ---------------------------------------------------------------------- .../projects/HTML/src/main/flex/org/apache/flex/core/UIBase.as | 5 +++++ 1 file changed, 5 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/ff4c3722/frameworks/projects/HTML/src/main/flex/org/apache/flex/core/UIBase.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/core/UIBase.as b/frameworks/projects/HTML/src/main/flex/org/apache/flex/core/UIBase.as index 617e440..603565a 100644 --- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/core/UIBase.as +++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/core/UIBase.as @@ -866,6 +866,11 @@ package org.apache.flex.core _id = value; dispatchEvent(new Event("idChanged")); } + + COMPILE::JS + { + element.id = _id; + } } private var _style:Object;