added support for reading ContinueStatus opensrf messages in the JS opensrf lib
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 1 Sep 2010 17:34:56 +0000 (17:34 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 1 Sep 2010 17:34:56 +0000 (17:34 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@2019 9efc2488-bf62-4759-914b-345cdb29e865

src/javascript/opensrf.js

index c014cd7..f85682c 100644 (file)
@@ -438,5 +438,18 @@ osrfServerError.prototype.statusCode = function() {
         this.hash.statusCode = d; 
     return this.hash.statusCode; 
 }
         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; 
+}