it's quite simple we have all events in an array [click, focus ...]
easily we apply a foreach on that array and next part of code assign a function to jQuery prototype $.fn.click()
which will become $('#me').click()
, and finally this click();
function calls $.fn.bind();
which will call addEventListener()
later, that's it.
if you still wondering where is addEventListener()
read about bind()
in jQuery.