mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix gridster destroy
Removes the coords data from each element.
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user