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 2017/03/26 13:02:02 UTC

[10/40] git commit: [flex-asjs] [refs/heads/tlf] - added statusText for JS

added statusText for JS


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

Branch: refs/heads/tlf
Commit: 8daf726a58e0a8495c92193cdc9cc36c4ba8cf65
Parents: ae7d5b7
Author: Justin Mclean <jm...@apache.org>
Authored: Sun Mar 19 15:16:14 2017 +1100
Committer: Justin Mclean <jm...@apache.org>
Committed: Sun Mar 19 15:16:14 2017 +1100

----------------------------------------------------------------------
 .../src/main/flex/org/apache/flex/net/HTTPService.as    | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8daf726a/frameworks/projects/Network/src/main/flex/org/apache/flex/net/HTTPService.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Network/src/main/flex/org/apache/flex/net/HTTPService.as b/frameworks/projects/Network/src/main/flex/org/apache/flex/net/HTTPService.as
index 95ce908..13c5a9c 100644
--- a/frameworks/projects/Network/src/main/flex/org/apache/flex/net/HTTPService.as
+++ b/frameworks/projects/Network/src/main/flex/org/apache/flex/net/HTTPService.as
@@ -316,6 +316,18 @@ package org.apache.flex.net
 		{
 			return _status;
 		}
+
+        /**
+         *
+         *  Status text contains more information about the HTTP request made.
+         *
+         *  @productversion FlexJS 0.8
+         */
+        COMPILE::JS
+        public function get statusText():String
+        {
+            return (element as XMLHttpRequest).statusText;
+        }
 		
 		private var _url:String;