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 cf5dae8 XMLList: added localName()
new 92e1de4 Merge pull request #945 from estanglerbm/xmllist-localname
cf5dae8 is described below
commit cf5dae84a070ffa14ec78f19578bee4a64dce105
Author: Edward Stangler <[email protected]>
AuthorDate: Sun Nov 22 09:46:21 2020 -0600
XMLList: added localName()
---
frameworks/projects/XML/src/main/royale/XMLList.as | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/frameworks/projects/XML/src/main/royale/XMLList.as
b/frameworks/projects/XML/src/main/royale/XMLList.as
index ba21f25..cad5577 100644
--- a/frameworks/projects/XML/src/main/royale/XMLList.as
+++ b/frameworks/projects/XML/src/main/royale/XMLList.as
@@ -1454,6 +1454,15 @@ package
throwError("Incompatible assignment of XMLList to XML");
return null;
}
+
+ public function localName():String
+ {
+ if (isSingle())
+ return _xmlArray[0].localName();
+
+ throwError("Incompatible assignment of XMLList to XML");
+ return null;
+ }
}
}