code: function(obj, name, sentinel, args) {
    if (obj._events) {
      // If `sentinel` is not the trigger sentinel, trigger was called
      // with a `{event: value}` object, and it is `value`.
      if (sentinel !== triggerSentinel) args = [sentinel].concat(args);
  
      var events = obj._events[name];
      var allEvents = obj._events.all;
      if (events) triggerEvents(events, args);
      if (allEvents) triggerEvents(allEvents, [name].concat(args));
    }
    return obj;
  }
docs: Handles triggering the appropriate event callbacks.