From 6cd5084a2322ede06418cc1269e9757e4d816f63 Mon Sep 17 00:00:00 2001 From: Pavel Reznikov Date: Mon, 22 Feb 2016 22:21:13 -0800 Subject: [PATCH] fix isAreaEmpty --- src/gridstack.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gridstack.js b/src/gridstack.js index 3025654..ae2510e 100644 --- a/src/gridstack.js +++ b/src/gridstack.js @@ -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) {