Responsive Plugin jQuery 3.0.0 d.isEmptyObject is not a function

Responsive Plugin jQuery 3.0.0 d.isEmptyObject is not a function

EMeisnerEMeisner Posts: 3Questions: 1Answers: 0

I am trying to use the responsive plugin with my mvc application. The app uses jquery 3.0.0. When i try to run the responsive plugin v 2.2.2, i receive the following error:

d.isEmptyObject is not a function. /Responsive-2.2.2/js/dataTables.responsive.min.js:19:236)

I would assume that jQuery 3.0.0 no longer supports that function? I have tried doing some research to see there is a replacement function in jquery to the isEmptyObject, but have had no luck. Is there any chance you guys (the developers of the responsive plugin) have had any luck updating the plugin to work with jQuery 3.0.0? Unfortunately, the project i am doing does require that version for other stuff.

As always thanks to everyone who works on the datatables project!

Answers

  • allanallan Posts: 48,452Questions: 1Answers: 7,015 Site admin

    It is still in jQuery.

    Can you give me a link to a page showing the issue please? Can you use jQuery 3.3.1 which is the latest of the 3.x series?

    Allan

  • EMeisnerEMeisner Posts: 3Questions: 1Answers: 0
    edited December 5

    Unfortunately I can produce the link as it is an internal site within our network. However the exact javascript console error below. I can give jQuery 3.3.1 a try as well. I very well could be misinterpreting the error message too. Thanks for the response!

    dataTables.responsive.min.js:21 Uncaught TypeError: d.isEmptyObject is not a function
    at i._setColumnVis (dataTables.responsive.min.js:21)
    at t.<anonymous> (dataTables.responsive.min.js:18)
    at t.each (jquery.dataTables.min.js:98)
    at i._resize (dataTables.responsive.min.js:18)
    at dataTables.responsive.min.js:7
    at jquery.dataTables.min.js:96
    at dispatch (jquery-3.0.0.js:5087)
    at elemData.handle (jquery-3.0.0.js:4895)

  • EMeisnerEMeisner Posts: 3Questions: 1Answers: 0

    I got it working. It was something unrelated. thanks for your help. it does work with v. 3.0.0 with no problem.

  • allanallan Posts: 48,452Questions: 1Answers: 7,015 Site admin

    Thanks for posting back - good to hear :).

    Allan

Sign In or Register to comment.