I just noticed that I get tons of deprecated warnings in the latest (canary) build of Chrome.
event.layerX and event.layerY are broken and deprecated in WebKit. They will be removed from the engine in the near future.
Looks like jQuery is screwing thing up.
I'm using: jquery-1.6.1.min.js
.
Would it help to upgrade to the latest jQuery version or isn't it fixed yet or is it a Chrome bug or is it something else.
PS
I cannot show you code because I think it's a general error, but I suspect the warnings get thrown when I try to access a jQuery object or when jQuery tries to access the layerX / layerY (well I'm pretty sure that's the case considering the error :P).
jQuery probably copies those properties into the jQuery object.
So...
What's going on?
EDIT
jQuery 1.7 is out and fixes this issue.
Read more at their blog, here.
@
to suppress errors. – PeeHaalayerX
andlayerY
, at least until they give it more careful consideration. It's also worth noting that IE recently addedlayerX
andlayerY
after not having it until version 9. My guess is these properties aren't going away -- at least until there is a suitable W3C replacement, which won't be soon. The warnings are gone in recent versions of WebKit. – Nathan Wall