Meteor-Community-Packages / meteor-collection-hooks

Meteor Collection Hooks
https://atmospherejs.com/matb33/collection-hooks
MIT License
657 stars 92 forks source link

getUserId doesn't work #6

Closed matb33 closed 11 years ago

matb33 commented 11 years ago

As reported by Andrew Mao offline:

the getUserId.call(this) doesn't work, because this is set to the collection inside the prototype, so you can't pass in the context of the published callback even if you wanted to

mizzao commented 11 years ago

I wrote a more comprehensive explanation in #7.