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 265c230  string literals are not set in the constructor
265c230 is described below

commit 265c230ac5d555b2643bb9220bb5b69408abd66d
Author: Harbs <[email protected]>
AuthorDate: Thu Nov 28 18:49:50 2019 +0200

    string literals are not set in the constructor
    
    The string literal will work because the comparison is not strict
---
 frameworks/projects/XML/src/main/royale/XML.as | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/frameworks/projects/XML/src/main/royale/XML.as 
b/frameworks/projects/XML/src/main/royale/XML.as
index 8bdc99e..2ecd067 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;
+                                       // wrapper._nodeKind = ELEMENT;
                                        child = new XML(child.toString());
                                        wrapper.setName(lastChild.name());
                                        child.setParent(wrapper);
@@ -1169,7 +1169,7 @@ package
                        */
                        var i:int;
                        var xml:XML = new XML();
-                       xml._nodeKind = _nodeKind;
+                       xml.setNodeKind(_nodeKind);
                        xml.setName(name());
                        xml.setValue(_value);
                        var len:int;
@@ -1872,7 +1872,7 @@ package
                        return declaredNS;
                }
                
-               private var _nodeKind:String = ELEMENT;
+               private var _nodeKind:String = "element";
                /**
                 * Specifies the type of node: text, comment, 
processing-instruction, attribute, or element.
                 * @return

Reply via email to