Skip to content

Commit a33f046

Browse files
committed
fix in isAreaEmpty and _notify
1 parent 00d780a commit a33f046

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

dist/gridstack.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@
177177
var collisionNode = _.find(this.nodes, _.bind(function(n) {
178178
return Utils.isIntercepted(n, nn);
179179
}, this));
180-
return collisionNode === null;
180+
return collisionNode === null || typeof collisionNode === 'undefined';
181181
};
182182

183183
GridStackEngine.prototype._sortNodes = function(dir) {
@@ -277,7 +277,7 @@
277277
if (this._updateCounter) {
278278
return;
279279
}
280-
var deletedNodes = Array.prototype.slice.call(arguments, 1).concat(this.getDirtyNodes());
280+
var deletedNodes = Array.prototype.slice.call(arguments, 0);
281281
deletedNodes = deletedNodes.concat(this.getDirtyNodes());
282282
this.onchange(deletedNodes);
283283
};

0 commit comments

Comments
 (0)