[Opensrf-commits] r2235 - branches/rel_2_0/src/javascript (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Apr 28 12:21:42 EDT 2011


Author: erickson
Date: 2011-04-28 12:21:39 -0400 (Thu, 28 Apr 2011)
New Revision: 2235

Modified:
   branches/rel_2_0/src/javascript/opensrf.js
Log:
Patch from Kevin Beswick to support set operations on certain opensrf message fields.  note, this does not currently affect behavior, since values for messages are initially set from parsing JSON without using the access/mutators for setting values.

Modified: branches/rel_2_0/src/javascript/opensrf.js
===================================================================
--- branches/rel_2_0/src/javascript/opensrf.js	2011-04-28 16:20:47 UTC (rev 2234)
+++ branches/rel_2_0/src/javascript/opensrf.js	2011-04-28 16:21:39 UTC (rev 2235)
@@ -90,12 +90,12 @@
     this.hash = hash;
     this._encodehash = true;
 }
-osrfMethod.prototype.method = function() {
+osrfMethod.prototype.method = function(d) {
     if(arguments.length == 1) 
         this.hash.method = d; 
     return this.hash.method; 
 };
-osrfMethod.prototype.params = function() {
+osrfMethod.prototype.params = function(d) {
     if(arguments.length == 1) 
         this.hash.params = d; 
     return this.hash.params; 
@@ -114,12 +114,12 @@
     this.hash = hash;
     this._encodehash = true;
 }
-osrfMethodException.prototype.status = function() {
+osrfMethodException.prototype.status = function(d) {
     if(arguments.length == 1) 
         this.hash.status = d; 
     return this.hash.status; 
 };
-osrfMethodException.prototype.statusCode = function() {
+osrfMethodException.prototype.statusCode = function(d) {
     if(arguments.length == 1) 
         this.hash.statusCode = d; 
     return this.hash.statusCode; 
@@ -128,12 +128,12 @@
     this.hash = hash;
     this._encodehash = true;
 }
-osrfConnectStatus.prototype.status = function() {
+osrfConnectStatus.prototype.status = function(d) {
     if(arguments.length == 1) 
         this.hash.status = d; 
     return this.hash.status; 
 };
-osrfConnectStatus.prototype.statusCode = function() {
+osrfConnectStatus.prototype.statusCode = function(d) {
     if(arguments.length == 1) 
         this.hash.statusCode = d; 
     return this.hash.statusCode; 
@@ -142,17 +142,17 @@
     this.hash = hash;
     this._encodehash = true;
 }
-osrfResult.prototype.status = function() {
+osrfResult.prototype.status = function(d) {
     if(arguments.length == 1) 
         this.hash.status = d; 
     return this.hash.status; 
 };
-osrfResult.prototype.statusCode = function() {
+osrfResult.prototype.statusCode = function(d) {
     if(arguments.length == 1) 
         this.hash.statusCode = d; 
     return this.hash.statusCode; 
 };
-osrfResult.prototype.content = function() {
+osrfResult.prototype.content = function(d) {
     if(arguments.length == 1) 
         this.hash.content = d; 
     return this.hash.content; 
@@ -161,12 +161,12 @@
     this.hash = hash;
     this._encodehash = true;
 }
-osrfServerError.prototype.status = function() {
+osrfServerError.prototype.status = function(d) {
     if(arguments.length == 1) 
         this.hash.status = d; 
     return this.hash.status; 
 };
-osrfServerError.prototype.statusCode = function() {
+osrfServerError.prototype.statusCode = function(d) {
     if(arguments.length == 1) 
         this.hash.statusCode = d; 
     return this.hash.statusCode; 
@@ -175,12 +175,12 @@
     this.hash = hash;
     this._encodehash = true;
 }
-osrfContinueStatus.prototype.status = function() {
+osrfContinueStatus.prototype.status = function(d) {
     if(arguments.length == 1) 
         this.hash.status = d; 
     return this.hash.status; 
 };
-osrfContinueStatus.prototype.statusCode = function() {
+osrfContinueStatus.prototype.statusCode = function(d) {
     if(arguments.length == 1) 
         this.hash.statusCode = d; 
     return this.hash.statusCode; 



More information about the opensrf-commits mailing list