Skip to content

Commit

Permalink
Merge pull request #103 from Mrjeff578575/master
Browse files Browse the repository at this point in the history
Widget doesn't  auto move up when remove widget
  • Loading branch information
leithhobson committed May 7, 2018
2 parents 2808cd7 + f1ee6eb commit 28f116d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/jquery.gridster.js
Original file line number Diff line number Diff line change
Expand Up @@ -2356,9 +2356,7 @@
*/
fn.is_empty = function (col, row) {
if (typeof this.gridmap[col] !== 'undefined') {
if (typeof this.gridmap[col][row] !== 'undefined' &&
this.gridmap[col][row] === false
) {
if (!this.gridmap[col][row]) {
return true;
}
return false;
Expand Down

0 comments on commit 28f116d

Please sign in to comment.