Apply is confusing, we don't actually use this

This commit is contained in:
Sashko Stubailo
2017-11-10 14:18:39 -08:00
parent 83c774c486
commit d16b928efb

View File

@@ -171,13 +171,13 @@ export default class ClientStream extends StreamClientCommon {
}, 'stream connect callback')
);
var clientOnIfCurrent = (event, description, f) => {
var clientOnIfCurrent = (event, description, callback) => {
this.client.on(
event,
Meteor.bindEnvironment((...args) => {
// Ignore events from any connection we've already cleaned up.
if (client !== this.client) return;
f.apply(this, args);
callback(...args);
}, description)
);
};