I want to get existing function, setted in element as listener. Is it possible?
for example:
button.onclick = function() { console.log("clicked") } // setted by another library
console.log(button.someMethod()) // function() { console.log('clicked') }