Make sure not to include placeholders when calling prepare element.

This commit is contained in:
Pavel Reznikov 2015-09-09 18:21:36 -07:00
commit 847a54c492
4 changed files with 4 additions and 4 deletions

2
dist/gridstack.js vendored
View file

@ -449,7 +449,7 @@
if (this.opts.auto) {
var elements = [];
var _this = this;
this.container.children('.' + this.opts.item_class).each(function(index, el) {
this.container.children('.' + this.opts.item_class + ':not(.' + this.opts.placeholder_class + ')').each(function(index, el) {
el = $(el);
elements.push({
el: el,

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -449,7 +449,7 @@
if (this.opts.auto) {
var elements = [];
var _this = this;
this.container.children('.' + this.opts.item_class).each(function(index, el) {
this.container.children('.' + this.opts.item_class + ':not(.' + this.opts.placeholder_class + ')').each(function(index, el) {
el = $(el);
elements.push({
el: el,