event.layerX and event.layerY are broken and deprecated in WebKit. They will be removed in future

event.layerX and event.layerY are broken and deprecated in WebKit. They will be removed in future

_jthomas_jthomas Posts: 75Questions: 0Answers: 0
edited January 2012 in General
Hi Allan,
Using DataTables 1.8 and browser Chrome 16.x

I am seeing the following warnings(tons of them) in Chrome recently( MouseOver, sorting, search filter activities with datatables)

"event.layerX and event.layerY are broken and deprecated in WebKit. They will be removed from the engine in the near future."

The corresponding jQuery bug ticket
http://bugs.jquery.com/ticket/10531
You may want to consider removing layerX and layerY from $.event.props. This is a backwards-incompatible change, but it must be done.


Please advise if we need to make any changes so that it will work with future chrome releases?

Regards
Joson

Replies

  • allanallan Posts: 63,538Questions: 1Answers: 10,476 Site admin
    Hi Joson,

    Neither DataTables nor any of its supported extras use layerX/Y. Given that the jQuery bug was marked as fixed for the 1.7 series, does this page, http://datatables.net/beta/1.9/examples/basic_init/zero_config.html , which uses 1.7.1 show the problem for you?

    Allan
  • _jthomas_jthomas Posts: 75Questions: 0Answers: 0
    Hi Allan,
    No, the page located at http://datatables.net/beta/1.9/examples/basic_init/zero_config.html does not show the warning. Guess we are cool!

    I guess Chrome is just outputting a general warning as I can see ton of them on
    http://www.datatables.net/release-datatables/examples/basic_init/zero_config.html

    Regards
    Joson
  • allanallan Posts: 63,538Questions: 1Answers: 10,476 Site admin
    The current release was packaged with jQuery 1.6.1 - hence since this is a jQuery issue that wasn't fixed until 1.7, the current release will certainly show that issue. Fix is to upgrade jQuery :-). DataTables 1.9 will ship with jQuery 1.7.1 (or 1.7.2 if they release that before DataTables 1.9.0 ships).

    Allan
  • _jthomas_jthomas Posts: 75Questions: 0Answers: 0
    Hi Allan,
    Thanks very much. Do you see an issue with DataTables 1.8 with JQuery 1.7.1? I thought I will just upgrade the jQuery lib alone? Please advise and thanks.

    Regards
    Joson
  • allanallan Posts: 63,538Questions: 1Answers: 10,476 Site admin
    No - I've used it with 1.7.1 and it passes all DataTables unit tests.

    Allan
  • _jthomas_jthomas Posts: 75Questions: 0Answers: 0
    Cool beans :-) Thanks very much, Allan!
This discussion has been closed.