diff --git a/src/jquery.gridster.js b/src/jquery.gridster.js index e588b1d2a..bda183748 100644 --- a/src/jquery.gridster.js +++ b/src/jquery.gridster.js @@ -1188,13 +1188,15 @@ * @return {Boolean} Returns true or false. */ fn.is_empty = function(col, row) { - if (typeof this.gridmap[col] !== 'undefined' && - typeof this.gridmap[col][row] !== 'undefined' && - this.gridmap[col][row] === false - ) { - return true; - } - return false; + if (typeof this.gridmap[col] !== 'undefined') { + if(typeof this.gridmap[col][row] !== 'undefined' && + this.gridmap[col][row] === false + ) { + return true; + } + return false; + } + return true; };