Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7dbbc10

Browse files
committed
add_faux_cell: create parent array if doesn't exists
1 parent 82b8778 commit 7dbbc10

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/jquery.gridster.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2350,6 +2350,10 @@
23502350
original_row: row
23512351
}).coords();
23522352

2353+
if (!$.isArray(this.gridmap[col])) {
2354+
this.gridmap[col] = [];
2355+
}
2356+
23532357
this.gridmap[col][row] = false;
23542358
this.faux_grid.push(coords);
23552359

0 commit comments

Comments
 (0)