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 14b10d7  revert UIComponent.as document property removed
14b10d7 is described below

commit 14b10d7f80f0c1a7de41e972eb2a44c43c7d162c
Author: pashminakazi <[email protected]>
AuthorDate: Wed Dec 16 21:36:52 2020 +0500

    revert UIComponent.as document property removed
---
 .../src/main/royale/mx/core/UIComponent.as         | 66 ----------------------
 1 file changed, 66 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 7935c73..b7d88c2 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
@@ -6461,72 +6461,6 @@ COMPILE::JS
     {
         _styleDeclaration = value;
     }
-    
-    //----------------------------------
-    //  document
-    //----------------------------------
-
-    /**
-     *  @private
-     *  Storage for the document property.
-     *  This variable is initialized in the init() method.
-     *  A document object (i.e., an Object at the top of the hierarchy
-     *  of a Flex application, MXML component, or AS component) has an
-     *  autogenerated override of initalize() which sets its _document to
-     *  'this', so that its 'document' property is a reference to itself.
-     *  Other UIComponents set their _document to their parent's _document,
-     *  so that their 'document' property refers to the document object
-     *  that they are inside.
-     */
-    mx_internal var _document:Object;
-
-    [Inspectable(environment="none")]
-
-    /**
-     *  A reference to the document object associated with this UIComponent.
-     *  A document object is an Object at the top of the hierarchy of a
-     *  Flex application, MXML component, or AS component.
-     *  
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
-     */
-    public function get document():Object
-    {
-        return _document;
-    }
-
-    /**
-     *  A reference to the document object associated with this UIComponent.
-     *  A document object is an Object at the top of the hierarchy of a
-     *  Flex application, MXML component, or AS component.
-     *  
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
-     */
-    public function set document(value:Object):void
-    {
-        var n:int = numChildren;
-        for (var i:int = 0; i < n; i++)
-        {
-            var child:IUIComponent = getChildAt(i) as IUIComponent;
-            if (!child)
-                continue;
-
-            if (child.document == _document ||
-                child.document == FlexGlobals.topLevelApplication)
-            {
-                child.document = value;
-            }
-        }
-
-        _document = value;
-    }
-
-
 
 }
 

Reply via email to