when we add xhr responses onto the end of the queue, stash the original session as...
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 12 Oct 2010 02:58:16 +0000 (02:58 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 12 Oct 2010 02:58:16 +0000 (02:58 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@2031 9efc2488-bf62-4759-914b-345cdb29e865

src/javascript/opensrf.js

index f85682c..d5553c3 100644 (file)
@@ -256,12 +256,12 @@ OpenSRF.Stack.push = function(net_msg, callbacks) {
 
     // push the latest responses onto the end of the inbound message queue
     for(var i = 0; i < osrf_msgs.length; i++)
-        OpenSRF.Stack.queue.push({msg : osrf_msgs[i], callbacks : callbacks});
+        OpenSRF.Stack.queue.push({msg : osrf_msgs[i], callbacks : callbacks, ses : ses});
 
     // continue processing responses, oldest to newest
     while(OpenSRF.Stack.queue.length) {
         var data = OpenSRF.Stack.queue.shift();
-        OpenSRF.Stack.handle_message(ses, data.msg, data.callbacks);
+        OpenSRF.Stack.handle_message(data.ses, data.msg, data.callbacks);
     }
 }