flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [1/3] git commit: make headers array on get if it doesn't already exist
Date Fri, 29 Mar 2013 06:41:25 GMT
Updated Branches:
  refs/heads/develop 564debef9 -> 04553a053


make headers array on get if it doesn't already exist


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

Branch: refs/heads/develop
Commit: 170df2636eedcbc498dc06152ec9f976458534f5
Parents: 564debe
Author: Alex Harui <aharui@apache.org>
Authored: Thu Mar 28 23:14:00 2013 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Thu Mar 28 23:19:34 2013 -0700

----------------------------------------------------------------------
 .../as/src/org/apache/flex/net/HTTPService.as      |   12 +++++++-----
 .../FlexJS/src/org/apache/flex/net/HTTPService.js  |    6 ++++--
 2 files changed, 11 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/170df263/frameworks/as/src/org/apache/flex/net/HTTPService.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/net/HTTPService.as b/frameworks/as/src/org/apache/flex/net/HTTPService.as
index 8ec8d0a..225ff08 100644
--- a/frameworks/as/src/org/apache/flex/net/HTTPService.as
+++ b/frameworks/as/src/org/apache/flex/net/HTTPService.as
@@ -30,13 +30,13 @@ package org.apache.flex.net
 	import org.apache.flex.events.Event;
 	import org.apache.flex.events.EventDispatcher;
 	
-	[Event("complete", org.apache.flex.events.Event)]
+	[Event(name="complete", type="org.apache.flex.events.Event")]
 	
-	[Event("ioError", org.apache.flex.events.Event)]
+	[Event(name="ioError", type="org.apache.flex.events.Event")]
 	
-	[Event("httpStatus", org.apache.flex.events.Event)]
+	[Event(name="httpStatus", type="org.apache.flex.events.Event")]
 	
-	[Event("httpResponseStatus", org.apache.flex.events.Event)]
+	[Event(name="httpResponseStatus", type="org.apache.flex.events.Event")]
     
     [DefaultProperty("beads")]
     
@@ -83,6 +83,8 @@ package org.apache.flex.net
 		private var _headers:Array;
 		public function get headers():Array
 		{
+			if (_headers == null)
+				_headers = [];
 			return _headers;
 		}
 		public function set headers(value:Array):void
@@ -128,7 +130,7 @@ package org.apache.flex.net
 		}
 		
 		private var _responseURL:String;
-		private function get responseURL():String
+		public function get responseURL():String
 		{
 			return _responseURL;	
 		}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/170df263/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js b/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js
index 87b58e1..908c158 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js
@@ -192,6 +192,8 @@ org.apache.flex.net.HTTPService.prototype.set_contentType = function(value)
{
  * @return {Array} value The array of HTTPHeaders.
  */
 org.apache.flex.net.HTTPService.prototype.get_headers = function() {
+    if (this._headers == undefined)
+        this._headers = [];
     return this._headers;
 };
 
@@ -250,8 +252,8 @@ org.apache.flex.net.HTTPService.prototype.get_responseHeaders = function()
{
  * @this {org.apache.flex.net.HTTPService}
  * @return {string} value The url.
  */
-org.apache.flex.net.HTTPService.prototype.get_responseUrl = function() {
-    return this._responseUrl;
+org.apache.flex.net.HTTPService.prototype.get_responseURL = function() {
+    return this._responseURL;
 };
 
 /**


Mime
View raw message