fix jquery size()

This commit is contained in:
Pavel Reznikov 2016-08-09 18:54:26 -07:00
commit 4c3abe8e63
3 changed files with 7 additions and 3 deletions

View file

@ -508,7 +508,7 @@
// jscs:enable requireCamelCaseOrUpperCaseIdentifiers
opts.itemClass = opts.itemClass || 'grid-stack-item';
var isNested = this.container.closest('.' + opts.itemClass).size() > 0;
var isNested = this.container.closest('.' + opts.itemClass).length > 0;
this.opts = _.defaults(opts || {}, {
width: parseInt(this.container.attr('data-gs-width')) || 12,