code: function(el, type) {
              var ek = Y.stamp(el, true), evts = _el_events[ek],
                  results=[] , key = (type) ? 'event:' + ek + type : null,
                  adapters = _eventenv.plugins;
  
              if (!evts) {
                  return null;
              }
  
              if (key) {
                  // look for synthetic events
                  if (adapters[type] && adapters[type].eventDef) {
                      key += '_synth';
                  }
  
                  if (evts[key]) {
                      results.push(evts[key]);
                  }
  
                  // get native events as well
                  key += 'native';
                  if (evts[key]) {
                      results.push(evts[key]);
                  }
  
              } else {
                  Y.each(evts, function(v, k) {
                      results.push(v);
                  });
              }
  
              return (results.length) ? results : null;
          }
docs: Returns all listeners attached to the given element via addListener.
  Optionally, you can specify a specific type of event to return.
  @method getListeners
  @param el {HTMLElement|string} the element or element id to inspect
  @param type {string} optional type of listener to return. If
  left out, all listeners will be returned
  @return {Y.Custom.Event} the custom event wrapper for the DOM event(s)
  @static