[OpenSRF-GIT] OpenSRF branch master updated. 2cf93448e2ba2540b7fc3ea2f939f62621488420

Evergreen Git git at git.evergreen-ils.org
Mon Feb 16 18:01:24 EST 2015


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "OpenSRF".

The branch, master has been updated
       via  2cf93448e2ba2540b7fc3ea2f939f62621488420 (commit)
      from  0c31fd33b8f5b55e24eba5862fca7be9ff3fc213 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 2cf93448e2ba2540b7fc3ea2f939f62621488420
Author: Bill Erickson <berickxx at gmail.com>
Date:   Thu Feb 5 10:34:40 2015 -0500

    LP#1418613 per-tab websocket send() JS thinko repair
    
    Avoid referencing variable defined somewhere outside the send_ws()
    function.  Doing so happened to result in re-sending the same message
    twice in some cases.
    
    Signed-off-by: Bill Erickson <berickxx at gmail.com>
    Signed-off-by: Mike Rylander <mrylander at gmail.com>

diff --git a/src/javascript/opensrf.js b/src/javascript/opensrf.js
index ecc012d..d67fbfd 100644
--- a/src/javascript/opensrf.js
+++ b/src/javascript/opensrf.js
@@ -284,7 +284,7 @@ OpenSRF.Session.prototype.send_ws = function(osrf_msg) {
     var json = js2JSON({
         service : this.service,
         thread : this.thread,
-        osrf_msg : [message.serialize()]
+        osrf_msg : [osrf_msg.serialize()]
     });
 
     OpenSRF.websocketConnection.send(json);

-----------------------------------------------------------------------

Summary of changes:
 src/javascript/opensrf.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
OpenSRF


More information about the opensrf-commits mailing list