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 34cc9a0  optimization to make _nodeKind use the prototype
34cc9a0 is described below

commit 34cc9a027f921854f6b35bfcc763103f096649bd
Author: Harbs <[email protected]>
AuthorDate: Thu Nov 28 20:29:45 2019 +0200

    optimization to make _nodeKind use the prototype
---
 frameworks/projects/XML/src/main/royale/XML.as | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/frameworks/projects/XML/src/main/royale/XML.as 
b/frameworks/projects/XML/src/main/royale/XML.as
index ae81799..6764d5a 100644
--- a/frameworks/projects/XML/src/main/royale/XML.as
+++ b/frameworks/projects/XML/src/main/royale/XML.as
@@ -906,7 +906,7 @@ package
                                if (lastChild && lastChild._nodeKind == 
ELEMENT) {
                                        
                                        const wrapper:XML = new XML();
-                                       wrapper._nodeKind = ELEMENT;
+                                       delete wrapper._nodeKind;
                                        child = new XML(child.toString());
                                        wrapper.setName(lastChild.name());
                                        child.setParent(wrapper);

Reply via email to