I'm trying to track down a problem in some very complex Javascript and I need to find all the jQuery(document).ready(
events that are active on the current screen as one of them is causing the problem.
Is there any way from the Javascript console to ask jQuery for the list of ready events set up on the document element? I did some googling and tried:
> jQuery(document)
< [#document]
> jQuery(document).data("events")
< undefined
Thanks to @ArunPJohny I now have:
> jQuery._data(document).events
Which returns:
Object {mouseup: Array[1], touchstart: Array[2], touchmove: Array[1], touchend: Array[1], click: Array[1]…}
MSPointerOver: Array[1]
click: Array[1]
mousemove: Array[1]
mouseup: Array[1]
pointerover: Array[1]
touchend: Array[1]
touchmove: Array[1]
touchstart: Array[2]
__proto__: Object