From: Bill Erickson Date: Wed, 5 Mar 2014 13:39:12 +0000 (-0500) Subject: LP#1268619: websockets : api_level continued X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=372880f1ee2e4227f014c6c86e5e83bb06bf4aa8;p=working%2FOpenSRF.git LP#1268619: websockets : api_level continued Signed-off-by: Bill Erickson --- diff --git a/src/javascript/opensrf.js b/src/javascript/opensrf.js index 6a36400..a387a9d 100644 --- a/src/javascript/opensrf.js +++ b/src/javascript/opensrf.js @@ -92,7 +92,7 @@ osrfMessage.prototype.serialize = function() { 'type' : this.hash.type, 'payload' : (this.hash.payload) ? this.hash.payload.serialize() : 'null', 'locale' : this.hash.locale, - 'api_level' : this.hash.api_level || OpenSRF.api_level + 'api_level' : this.hash.api_level; } }; }; @@ -422,7 +422,7 @@ OpenSRF.Request = function(session, reqid, args) { this.method = args.method; this.params = args.params; this.timeout = args.timeout; - this.api_level = args.api_level; + this.api_level = args.api_level || OpenSRF.api_level; this.response_queue = []; this.complete = false; };