title: Nodejs event is being emitted multiple times
body: <p>I have created my module <strong>modulemy</strong> with the following code : </p>
  
  <pre><code>var request = require('request');
  var EventEmitter = require('events').EventEmitter;
  var User = new EventEmitter();
  var userFbInfos = new EventEmitter();
  
  //database and calls the get started conversation.
  User['checkUserRegistered'] =  function (userID) {
      //if registered and have phone number then nothing to do otherwise, get user infos return it  and last ask his phonenumber
      //Now we consider that the user is not registered. So we get is infos
      userFbInfos.getInfos(userID);
      userFbInfos.on('gotten', function (err, userInfos) {
          User.emit('checked',err, userInfos);
      });
  
  }
  
  //This gets user info from Facebook and notifies when the information is gotten via event gotten
  //The thing is as node is event driven if you request the user info and run a code before getting that info, the userinfos will be null.
  
  userFbInfos['getInfos'] = function (userID) {
      request.get("https://graph.facebook.com/v2.6/" + userID + "?fields=first_name,last_name,locale,gender,timezone,profile_pic&amp;access_token=" + process.env.page_token,
      function (err, response, body) {
          userFbInfos.emit('gotten',err,JSON.parse(body));
      });
  }
  
  exports.userFbInfos = userFbInfos;
  exports.User = User;
  </code></pre>
  
  <p>and then in my <strong>app.js</strong>, I am using it as follow :</p>
  
  <pre><code>modulemy = require('./modulemy.js');
                          var user = modulemy.User;
                          //Checking if user is registered.
                          user.checkUserRegistered('123');
                          //This variable checks if the event was trigger before already to not execute the code twice.
                          var called = false;
                          user.on('checked', function (err, userInfos) {
  
                              if (!called){
                                  console.log("Call Checked");
                                  var name = "";
                                  if (typeof (userInfos) != 'undefined') {
                                      name = userInfos['first_name'];
                                  }
                                 console.log("Yes you are there");
                                  called = true;
                              }
                          });
  </code></pre>
  
  <p>The problem is the checked event is being triggered multiple times... I don't understand where the problem is ... I need help.</p>