mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Apply is confusing, we don't actually use this
This commit is contained in:
@@ -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)
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user