code: function ensureEvents(obj, name) {
    obj._events = obj._events || {};
    obj._events[name] = obj._events[name] || [];
  }
docs: Ensure an object to have the needed _events property
  @param  {*} obj
  @param  {String} name