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 51960f87cb Allow XML to be subclassed
51960f87cb is described below

commit 51960f87cb96cd20d224f969cedc36bc79358594
Author: Harbs <[email protected]>
AuthorDate: Sun Jun 26 18:16:47 2022 +0300

    Allow XML to be subclassed
---
 frameworks/projects/XML/src/main/royale/XML.as | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/frameworks/projects/XML/src/main/royale/XML.as 
b/frameworks/projects/XML/src/main/royale/XML.as
index b94b87471b..8262e9e48d 100644
--- a/frameworks/projects/XML/src/main/royale/XML.as
+++ b/frameworks/projects/XML/src/main/royale/XML.as
@@ -3233,7 +3233,7 @@ package
                 *
                 * @royaleignorecoercion XML
                 */
-               private function 
_toXMLString(indentLevel:int=0,ancestors:Array=null):String
+               protected function 
_toXMLString(indentLevel:int=0,ancestors:Array=null):String
                {
                        /*
                                Given an XML object x and an optional argument 
AncestorNamespaces and an optional argument IndentLevel, ToXMLString converts 
it to an XML encoded string s by taking the following steps:
@@ -3459,7 +3459,7 @@ package
                                //
                                if(XML.prettyPrinting && indentChildren)
                                        strArr.push("\n");
-                               
strArr.push(XML(_children[i])._toXMLString(nextIndentLevel,declarations.concat(ancestors)));
+                               strArr.push((_children[i] as 
XML)._toXMLString(nextIndentLevel,ancestors.concat(declarations)));
                        }
                        if(XML.prettyPrinting && indentChildren)
                        {

Reply via email to