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

pushminakazi 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 2533418  Implementation of Uid in UIComponent
2533418 is described below

commit 2533418aa1deee520dcf39f2a782008016f61878
Author: pashminakazi <[email protected]>
AuthorDate: Thu Oct 31 13:17:41 2019 +0500

    Implementation of Uid in UIComponent
---
 .../MXRoyale/src/main/royale/mx/core/UIComponent.as         | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as 
b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
index d56b9cd..85ea26d 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
@@ -4640,14 +4640,17 @@ COMPILE::JS
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
-    public function get uid():Object
+    private var _uid:String;
+    public function get uid():String
     {
-        trace("uid not implemented");
-        return 0;
+        if (!_uid)
+            _uid = toString();
+
+        return _uid;
     }
-    public function set uid(value:Object):void
+    public function set uid(uid:String):void
     {
-        trace("uid not implemented");
+        this._uid = uid;
     }
        [Inspectable(category="General")]
        

Reply via email to