Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gridstack with jQuery 3.x #486

Closed
acerberus opened this issue Jul 28, 2016 · 2 comments
Closed

Gridstack with jQuery 3.x #486

acerberus opened this issue Jul 28, 2016 · 2 comments
Labels
Milestone

Comments

@acerberus
Copy link

Gridstack does not work out of the box with jQuery 3.x. The problem is that it uses the deprecated size() function (https://api.jquery.com/size/). In order to make it work one can register the size function as

 //size function for gridstack
 $.fn.size = function(){
      return this.length;
 };
@PaulBullivant
Copy link

This change worked for me without having to create an extra function
var isNested = this.container.closest('.' + opts.itemClass).size() > 0;
TO
var isNested = this.container.closest('.' + opts.itemClass).length > 0;

@radiolips
Copy link
Member

This will be taken care of in the next development update very shortly.

@radiolips radiolips added this to the v0.2.6 milestone Aug 10, 2016
@troolee troolee closed this as completed Aug 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants