Fix gridster destroy

Removes the coords data from each element.
This commit is contained in:
Toosick
2014-11-17 10:20:30 -06:00
parent 314037471f
commit 821264d30e
+5
View File
@@ -3111,6 +3111,11 @@
fn.destroy = function(remove) {
this.$el.removeData('gridster');
// remove coords from elements
$.each(this.$el.find('li'),function(){
$(this).removeData('coords');
});
// remove bound callback on window resize
$(window).unbind('.gridster');