You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by jk...@apache.org on 2017/12/04 16:04:13 UTC

thrift git commit: THRIFT-4403: Fix incorrect usage of 'this' Client: js

Repository: thrift
Updated Branches:
  refs/heads/master d30a7d159 -> 05a08ce9c


THRIFT-4403: Fix incorrect usage of 'this'
Client: js

This closes #1437


Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/05a08ce9
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/05a08ce9
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/05a08ce9

Branch: refs/heads/master
Commit: 05a08ce9c177ffbe8c395fdc9e8f5a4c5daef02c
Parents: d30a7d1
Author: Philip Frank <ic...@philipfrank.de>
Authored: Mon Dec 4 13:29:58 2017 +0100
Committer: James E. King, III <jk...@apache.org>
Committed: Mon Dec 4 11:03:38 2017 -0500

----------------------------------------------------------------------
 lib/js/src/thrift.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/05a08ce9/lib/js/src/thrift.js
----------------------------------------------------------------------
diff --git a/lib/js/src/thrift.js b/lib/js/src/thrift.js
index ab85e9d..1a11871 100644
--- a/lib/js/src/thrift.js
+++ b/lib/js/src/thrift.js
@@ -599,8 +599,8 @@ Thrift.TWebSocketTransport.prototype = {
           //If the user made calls before the connection was fully
           //open, send them now
           this.send_pending.forEach(function(elem) {
-             this.socket.send(elem.buf);
-             this.callbacks.push((function() {
+             self.socket.send(elem.buf);
+             self.callbacks.push((function() {
                var clientCallback = elem.cb;
                return function(msg) {
                   self.setRecvBuffer(msg);