Make it work with jQuery 1.8+

Retrieve events using $._data(element, 'events');
Merge pull request #34 from KoalaBear84/patch-1

Make it work with jQuery 1.8+