Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event Emitter not working. #3

Closed
ronycohen opened this issue Sep 14, 2015 · 1 comment
Closed

Event Emitter not working. #3

ronycohen opened this issue Sep 14, 2015 · 1 comment

Comments

@ronycohen
Copy link

Hello,

Here is the example on superlogin / lib / index.js

  //Working
  emitter.on('testemit1', function (){
    console.log('1 - ring ring ring');
  });

  var mailer = new Mailer(config);
  var user = new User(config, userDB, couchAuthDB, mailer, emitter);
  emitter.emit('testemit1');
  emitter.emit('testemit2');
  var oauth = new Oauth(router, passport, user, config);

  //Not Working
  emitter.on('testemit2', function (){
    console.log('2 - ring ring ring');
  });
@colinskow
Copy link
Owner

Fixed with 1d12b7b

regnete pushed a commit to sitewaerts/superlogin that referenced this issue Jan 15, 2019
* Clean up tests, make them less flaky
* Update dependencies, repo urls, version, add node 9 support, ignore package.json
* Update CHANGELOG, remove return used as a function.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants