Skip to content

Commit

Permalink
fix in isAreaEmpty and _notify
Browse files Browse the repository at this point in the history
  • Loading branch information
troolee committed Feb 23, 2016
1 parent 00d780a commit a33f046
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/gridstack.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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);
};
Expand Down
Loading

0 comments on commit a33f046

Please sign in to comment.