Resolution: Won't Fix
Affects Version/s: None
Fix Version/s: None
discussion here: http://markmail.org/message/mghdkbumdyjhmaye
I noticed in cordova.js we override the following messages on window/document:
aka as "monkey patching".
Apparently, we aren't sure why we're doing this. My guess is that we've done this in the past when dispatching user-land events wasn't possible, and so trapping listeners was the only way to get the listeners so you could send them events.
It would be nice to remove this monkey patching, if we can, by using:
We'll need to figure out if this works on all our platforms. Even if it doesn't work on all of them, I think we should only use monkey patching on platforms that we have to.