fix in isAreaEmpty and _notify
This commit is contained in:
parent
00d780adfa
commit
a33f046fa6
4
dist/gridstack.js
vendored
4
dist/gridstack.js
vendored
|
@ -177,7 +177,7 @@
|
|||
var collisionNode = _.find(this.nodes, _.bind(function(n) {
|
||||
return Utils.isIntercepted(n, nn);
|
||||
}, this));
|
||||
return collisionNode === null;
|
||||
return collisionNode === null || typeof collisionNode === 'undefined';
|
||||
};
|
||||
|
||||
GridStackEngine.prototype._sortNodes = function(dir) {
|
||||
|
@ -277,7 +277,7 @@
|
|||
if (this._updateCounter) {
|
||||
return;
|
||||
}
|
||||
var deletedNodes = Array.prototype.slice.call(arguments, 1).concat(this.getDirtyNodes());
|
||||
var deletedNodes = Array.prototype.slice.call(arguments, 0);
|
||||
deletedNodes = deletedNodes.concat(this.getDirtyNodes());
|
||||
this.onchange(deletedNodes);
|
||||
};
|
||||
|
|
2
dist/gridstack.min.js
vendored
2
dist/gridstack.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/gridstack.min.map
vendored
2
dist/gridstack.min.map
vendored
File diff suppressed because one or more lines are too long
|
@ -277,7 +277,7 @@
|
|||
if (this._updateCounter) {
|
||||
return;
|
||||
}
|
||||
var deletedNodes = Array.prototype.slice.call(arguments, 1).concat(this.getDirtyNodes());
|
||||
var deletedNodes = Array.prototype.slice.call(arguments, 0);
|
||||
deletedNodes = deletedNodes.concat(this.getDirtyNodes());
|
||||
this.onchange(deletedNodes);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue