the .data method doesn't work for jQuery > 1.7.2

the .data(‘events’) method of retrieving event handlers was deprecated
after jQuery 1.7.2