Due to the line here
|
} else if((typeof listener === 'object') && (typeof listener.handleEvent === 'function')) { |
if the handleEvent function is added dynamically (something that i like to do, because this way nobody can rebind it out of its scope), it will not work
I think it's quite safe to drop the check for the function itself. If it's an object, it needs to have a handleEvent, as defined in the addEventListenerApi : it's a function, or an object
Due to the line here
events-polyfill/index.js
Line 87 in bc989dc
if the handleEvent function is added dynamically (something that i like to do, because this way nobody can rebind it out of its scope), it will not work
I think it's quite safe to drop the check for the function itself. If it's an object, it needs to have a handleEvent, as defined in the addEventListenerApi : it's a function, or an object