fix(gridster): destroy resize_api

Call  `resize_api.destroy()`  to fix  memory leak.

Closes #473
This commit is contained in:
jcp
2015-04-14 11:43:23 +02:00
committed by Javi Sánchez-Marín
parent 595a94f1bd
commit b16293268c
+4
View File
@@ -3118,6 +3118,10 @@
this.drag_api.destroy();
}
if (this.resize_api) {
this.resize_api.destroy();
}
this.remove_style_tags();
remove && this.$el.remove();