Skip to content

Commit

Permalink
need to pass through variable that is used.
Browse files Browse the repository at this point in the history
  • Loading branch information
n1mmy committed Dec 5, 2013
1 parent 0a0059d commit d476161
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/livedata/stream_client_nodejs.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ _.extend(LivedataTest.ClientStream.prototype, {
}

var onError = Meteor.bindEnvironment(
function (_this) {
function (_this, error) {
if (self.currentConnection !== _this)
return;

Expand All @@ -110,7 +110,7 @@ _.extend(LivedataTest.ClientStream.prototype, {
connection.on('error', function (error) {
// We have to pass in `this` explicitly because bindEnvironment
// doesn't propagate it for us.
onError(this);
onError(this, error);
});

var onClose = Meteor.bindEnvironment(
Expand Down

0 comments on commit d476161

Please sign in to comment.