From 372880f1ee2e4227f014c6c86e5e83bb06bf4aa8 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 5 Mar 2014 08:39:12 -0500 Subject: [PATCH] LP#1268619: websockets : api_level continued Signed-off-by: Bill Erickson --- src/javascript/opensrf.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }; -- 2.11.0