From 92a476c685b1a613db374f2981ade0ec08b18ee1 Mon Sep 17 00:00:00 2001 From: erickson Date: Wed, 1 Sep 2010 17:34:56 +0000 Subject: [PATCH] added support for reading ContinueStatus opensrf messages in the JS opensrf lib git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@2019 9efc2488-bf62-4759-914b-345cdb29e865 --- src/javascript/opensrf.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/javascript/opensrf.js b/src/javascript/opensrf.js index c014cd7..f85682c 100644 --- a/src/javascript/opensrf.js +++ b/src/javascript/opensrf.js @@ -438,5 +438,18 @@ osrfServerError.prototype.statusCode = function() { this.hash.statusCode = d; return this.hash.statusCode; } - +function osrfContinueStatus(hash) { + this.hash = hash; + this._encodehash = true; +} +osrfContinueStatus.prototype.status = function() { + if(arguments.length == 1) + this.hash.status = d; + return this.hash.status; +} +osrfContinueStatus.prototype.statusCode = function() { + if(arguments.length == 1) + this.hash.statusCode = d; + return this.hash.statusCode; +} -- 2.43.2