diff --git a/src/jquery.gridster.js b/src/jquery.gridster.js index 7bac9118..e8409847 100755 --- a/src/jquery.gridster.js +++ b/src/jquery.gridster.js @@ -3111,6 +3111,11 @@ fn.destroy = function(remove) { this.$el.removeData('gridster'); + // remove coords from elements + $.each(this.$widgets,function(){ + $(this).removeData('coords'); + }); + // remove bound callback on window resize $(window).unbind('.gridster');