code: function addListener(id, event, listener) {
      if (!hasListeners(event)) {
        context._events[event] = {};
      }
      
      context._events[event][id] = listener;
  
      return id;
    }
docs: adds a listener to an event