3 ms·
That would be awesome! I filed a bug to ask how plausible it is: https://bugzilla.mozilla.org/show_bug.cgi?id=1048033 https://bugzilla.mozilla.org/show_bug.cgi?
by Osmose 12y ago
That would be awesome! I filed a bug to ask how plausible it is: https://bugzilla.mozilla.org/show_bug.cgi?id=1048033 https://bugzilla.mozilla.org/show_bug.cgi?id=1048033
Perhaps they could make it ignore blackboxed scripts by emitting a fake event and waiting until a non-blackboxed call is made, then intercepting that call and showing that function as the actual listener? That idea falls apart of the blackboxed listener changes the state of the program, though.
Or maybe an extra argument to addEventListener that takes a reference to a function that is the "real" listener? Then libraries like jQuery would just pass the user-provided function along in their own code.