cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [01/14] cxf git commit: Update cxf-utils.js to throw the onerror handler on timeout This closes #126
Date Mon, 25 Jul 2016 15:30:35 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes 8bfa04d6d -> f86fa5bbb


Update cxf-utils.js to throw the onerror handler on timeout
This closes #126


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

Branch: refs/heads/3.0.x-fixes
Commit: ff07f49a22db975e1f00a751b54b395b1fec4408
Parents: 8bfa04d
Author: Jeroen van der Last <jlast@users.noreply.github.com>
Authored: Tue Apr 5 16:30:58 2016 +0200
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Mon Jul 25 10:11:57 2016 -0400

----------------------------------------------------------------------
 .../src/main/resources/org/apache/cxf/javascript/cxf-utils.js   | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/ff07f49a/rt/javascript/javascript-rt/src/main/resources/org/apache/cxf/javascript/cxf-utils.js
----------------------------------------------------------------------
diff --git a/rt/javascript/javascript-rt/src/main/resources/org/apache/cxf/javascript/cxf-utils.js
b/rt/javascript/javascript-rt/src/main/resources/org/apache/cxf/javascript/cxf-utils.js
index a084d05..8c9f451 100644
--- a/rt/javascript/javascript-rt/src/main/resources/org/apache/cxf/javascript/cxf-utils.js
+++ b/rt/javascript/javascript-rt/src/main/resources/org/apache/cxf/javascript/cxf-utils.js
@@ -745,6 +745,9 @@ function org_apache_cxf_client_request(url, requestXML, method, sync,
headers)
 	this.req.onreadystatechange = function() {
 		requester.onReadyState();
 	}
+	this.req.onerror = function() {
+		requester.onReadyState();
+	}
 
 	// NOTE: we do not call the onerror callback for a synchronous error
 	// at request time. We let the request object throw as it will.
@@ -929,7 +932,7 @@ function org_apache_cxf_client_onReadyState() {
 						return;
 					}
 					if (this.onerror != null) {
-						this.onerror("Could not handle content of response.");
+						this.onerror(this, "Could not handle content of response.");
 						return;
 					}
 				}


Mime
View raw message