Removing jQuery event properties
event.layerY will be removed from WebKit soon. Every jQuery-bound event handler now logs this warning:
event.layerYare broken and deprecated in WebKit. They will be removed from the engine in the near future.
See jQuery bug #10531.
It’s possible to prevent jQuery from copying these properties over to its event objects, but what is the fastest way of doing this?
These snippets don’t do exactly the same, but they all have a similar effect: the
layerY properties aren’t copied to jQuery
event objects anymore.
var props = $.event.props;
Preparation code output
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
Compare results of other browsers
You can edit these tests or add even more tests to this page by appending
/edit to the URL. Here’s a list of current revisions for this page: