code: function nameFunction(handler) {
    var scope = handler.scope ? handler.scope.constructor.name + '.' : '';
    var name = handler.func.name;
    if (name) {
      return scope + name;
    }
    for (var prop in handler.scope) {
      if (handler.scope[prop] === handler.func) {
        return scope + prop;
      }
    }
    return scope + handler.func;
  }
docs: Useful way to create a name for a handler, used in createEvent()