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