Hidden row details example is using a removed jQuery function

Hidden row details example is using a removed jQuery function

bicklebickle Posts: 8Questions: 0Answers: 0
edited April 2014 in Web-site
Just a quick fyi, the hidden rows example (http://datatables.net/examples/api/row_details.html) is using the .live jquery function which was removed in 1.9 (http://jquery.com/upgrade-guide/1.9/#live-removed). Not a big deal, it can just be replaced with .on, but I thought you might want to know.

[quote].live() removed

The .live() method has been deprecated since jQuery 1.7 and has been removed in 1.9. We recommend upgrading code to use the .on() method instead. To exactly match $("a.foo").live("click", fn), for example, you can write $(document).on("click", "a.foo", fn). For more information, see the .on() documentation. In the meantime, the jQuery Migrate plugin can be used to restore the .live() functionality.[/quote]

Replies

  • allanallan Posts: 61,438Questions: 1Answers: 10,052 Site admin
    Yup - this has been fixed already in the 1.10 betas: http://next.datatables.net/examples/api/row_details.html . Thanks for flagging it up.

    Allan
This discussion has been closed.