From 7dbbc105c11449ae8ccb0fd80bafc79b93536903 Mon Sep 17 00:00:00 2001 From: vieron Date: Wed, 3 Oct 2012 15:46:15 +0200 Subject: [PATCH] add_faux_cell: create parent array if doesn't exists --- src/jquery.gridster.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/jquery.gridster.js b/src/jquery.gridster.js index 72f5f5468..010f05c83 100644 --- a/src/jquery.gridster.js +++ b/src/jquery.gridster.js @@ -2350,6 +2350,10 @@ original_row: row }).coords(); + if (!$.isArray(this.gridmap[col])) { + this.gridmap[col] = []; + } + this.gridmap[col][row] = false; this.faux_grid.push(coords);