From 89bce45fc1179999cc0741151782691021791a24 Mon Sep 17 00:00:00 2001 From: Cosmin Pascu Date: Wed, 30 Apr 2014 04:34:45 -0700 Subject: [PATCH 1/2] Fixed issue where existing widget position would be overwritten on gridmap when adding a faux cell to accommodate another widget. --- dist/jquery.gridster.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dist/jquery.gridster.js b/dist/jquery.gridster.js index 30d7fbb74..0be655b70 100644 --- a/dist/jquery.gridster.js +++ b/dist/jquery.gridster.js @@ -3689,7 +3689,10 @@ this.gridmap[col] = []; } - this.gridmap[col][row] = false; + if( typeof this.gridmap[col][row] === undefined ){ + this.gridmap[col][row] = false; + } + this.faux_grid.push(coords); return this; From 4a1ef1029bd793bb8817e299345c50e36efeefe0 Mon Sep 17 00:00:00 2001 From: Cosmin Pascu Date: Wed, 14 May 2014 15:38:18 -0700 Subject: [PATCH 2/2] Fixed typeof comparison to match against string. --- dist/jquery.gridster.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/jquery.gridster.js b/dist/jquery.gridster.js index 0be655b70..7551fdefa 100644 --- a/dist/jquery.gridster.js +++ b/dist/jquery.gridster.js @@ -3689,7 +3689,7 @@ this.gridmap[col] = []; } - if( typeof this.gridmap[col][row] === undefined ){ + if( typeof this.gridmap[col][row] === "undefined" ){ this.gridmap[col][row] = false; }