Commit Graph

3 Commits

Author SHA1 Message Date
Jan Dvorak
b6271d08ef callback-hook add forEach iterator to follow the JS standard 2021-08-13 10:26:31 +02:00
Jan Dvorak
f25c29a1e9 Modernize & fix bad var assignment 2021-07-21 17:15:29 +02:00
Dean Brettle
587e02a692 Fix issue #4862. Don't wrap login callbacks with bindEnvironment.
Changes to packages/callback-hook:
- Add bindEnvironment option to Hook constructor (defaults to true).
- Add internal helper function dontBindEnvironment() which does all the
  error handling stuff like Meteor.bindEnvironment() but doesn't change
  the environment.
- Use dontBindEnvironment() instead of Meteor.bindEnvironment() when
  bindEnvironment option is false.
- Add tests.

Changes to packages/accounts-base:
- Create hooks with { bindEnvironment: false }
- Add test for whether Meteor.userId() is available in login callbacks.
2015-08-03 10:52:11 -07:00