Skip to content

Commit b162932

Browse files
jcpvieron
jcp
authored andcommitted
fix(gridster): destroy resize_api
Call `resize_api.destroy()` to fix memory leak. Closes ducksboard#473
1 parent 595a94f commit b162932

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/jquery.gridster.js

+4
Original file line numberDiff line numberDiff line change
@@ -3118,6 +3118,10 @@
31183118
this.drag_api.destroy();
31193119
}
31203120

3121+
if (this.resize_api) {
3122+
this.resize_api.destroy();
3123+
}
3124+
31213125
this.remove_style_tags();
31223126

31233127
remove && this.$el.remove();

0 commit comments

Comments
 (0)