fix isAreaEmpty

This commit is contained in:
Pavel Reznikov 2016-02-22 22:21:13 -08:00
parent eca0e9f9bd
commit 6cd5084a23

View file

@ -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) {