From 8b6a48bf8c6668af46d25878186b6a8c3a76e30f Mon Sep 17 00:00:00 2001 From: Stijn Verrept Date: Mon, 8 Sep 2014 16:45:46 +0200 Subject: [PATCH] Wrong addition solved in add_faux_rows by adding parseInt --- dist/jquery.gridster.js | 2 +- src/jquery.gridster.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/jquery.gridster.js b/dist/jquery.gridster.js index f5b5fd2be..73551adc0 100644 --- a/dist/jquery.gridster.js +++ b/dist/jquery.gridster.js @@ -3795,7 +3795,7 @@ */ fn.add_faux_rows = function(rows) { var actual_rows = this.rows; - var max_rows = actual_rows + (rows || 1); + var max_rows = actual_rows + parseInt(rows || 1); for (var r = max_rows; r > actual_rows; r--) { for (var c = this.cols; c >= 1; c--) { diff --git a/src/jquery.gridster.js b/src/jquery.gridster.js index 7bac91186..bbfde924c 100755 --- a/src/jquery.gridster.js +++ b/src/jquery.gridster.js @@ -2960,7 +2960,7 @@ */ fn.add_faux_rows = function(rows) { var actual_rows = this.rows; - var max_rows = actual_rows + (rows || 1); + var max_rows = actual_rows + parseInt(rows || 1); for (var r = max_rows; r > actual_rows; r--) { for (var c = this.cols; c >= 1; c--) {