You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ha...@apache.org on 2016/04/11 00:48:38 UTC

[27/49] git commit: [flex-asjs] [refs/heads/develop] - Fixed some compile errors

Fixed some compile errors


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/ab713c43
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/ab713c43
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/ab713c43

Branch: refs/heads/develop
Commit: ab713c4330e8c07dbe31bae436917f3126ed566d
Parents: 3872cb8
Author: Harbs <ha...@in-tools.com>
Authored: Tue Feb 16 20:19:08 2016 +0200
Committer: Harbs <ha...@in-tools.com>
Committed: Tue Feb 16 20:19:08 2016 +0200

----------------------------------------------------------------------
 frameworks/projects/XML/src/main/flex/Namespace.as |  2 +-
 frameworks/projects/XML/src/main/flex/XML.as       | 16 ++++++++++------
 2 files changed, 11 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/ab713c43/frameworks/projects/XML/src/main/flex/Namespace.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/XML/src/main/flex/Namespace.as b/frameworks/projects/XML/src/main/flex/Namespace.as
index 95bb405..c79ddbe 100644
--- a/frameworks/projects/XML/src/main/flex/Namespace.as
+++ b/frameworks/projects/XML/src/main/flex/Namespace.as
@@ -124,7 +124,7 @@ package
 			return uri;
 		}
 
-		public function valueOf():Object
+		override public function valueOf():*
 		{
 			return this;
 		}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/ab713c43/frameworks/projects/XML/src/main/flex/XML.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/XML/src/main/flex/XML.as b/frameworks/projects/XML/src/main/flex/XML.as
index 8c65385..09a030d 100644
--- a/frameworks/projects/XML/src/main/flex/XML.as
+++ b/frameworks/projects/XML/src/main/flex/XML.as
@@ -31,7 +31,7 @@ package
 
 		static private var defaultNamespace:Namespace;
 
-		static public function setDefaultNamespace(ns:*)
+		static public function setDefaultNamespace(ns:*):void
 		{
 			if(!ns)
 				defaultNamespace = null;
@@ -89,7 +89,7 @@ package
 		static private function escapeAttributeValue(value:String):String
 		{
 			var outArr:Array = [];
-			var arr = value.split("");
+			var arr:Array = value.split("");
 			var len:int = arr.length;
 			for(var i:int=0;i<len;i++)
 			{
@@ -120,9 +120,10 @@ package
 
 		static private function escapeElementValue(value:String):String
 		{
+			var i:int;
 			var outArr:Array = [];
-			var arr = value.split("");
-			for(var i=0;i<arr.length;i++)
+			var arr:Array = value.split("");
+			for(i=0;i<arr.length;i++)
 			{
 				switch(arr[i])
 				{
@@ -143,7 +144,7 @@ package
 			return outArr.join("");
 		}
 
-		static private function insertAttribute(att:Attr,parent:XML):XML()
+		static private function insertAttribute(att:Attr,parent:XML):XML
 		{
 			var xml:XML = new XML();
 			xml.setParent(parent);
@@ -155,6 +156,7 @@ package
 		}
 		static private function iterateElement(node:Element,xml:XML):void
 		{
+			var i:int;
 			// add attributes
 			for(i=0;i<node.attributes.length;i++)
 			{
@@ -324,6 +326,7 @@ package
 			// get rid of nodes we do not want 
 
 			//loop through the child nodes and build XML obejcts for each.
+			/*
 			Object.defineProperty(this,"0",
 				{
 					get: function() { return this; },
@@ -333,7 +336,7 @@ package
 					configurable: true
 				}
 			);
-
+			*/
 		}
 		
 		private var _children:Array;
@@ -607,6 +610,7 @@ package
 		 */
 		public function comments():XMLList
 		{
+			var i:int;
 			var list:XMLList = new XMLList();
 			for(i=0;i<_children.length;i++)
 			{