From: erickson Date: Wed, 1 Sep 2010 17:34:56 +0000 (+0000) Subject: added support for reading ContinueStatus opensrf messages in the JS opensrf lib X-Git-Tag: osrf_rel_2_0_1~104 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=92a476c685b1a613db374f2981ade0ec08b18ee1;p=OpenSRF.git 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 --- 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; +}