I am wondering if there is a way to get a list of the currently addedtostage events in JavaScript without jQuery?
I want to know this because I want to remove these events later.
I looked around on stackoverflow but I couldn't find an answer without jQuery.
I tried:
Event.observers.each(function(item) {
if(item[0] == element) {
console.log(item[2])
}
});
I also looked at List all javascript events wired up on a page using jquery
Thanks