Skip to content

Commit

Permalink
fix(gridster): destroy resize_api
Browse files Browse the repository at this point in the history
Call  `resize_api.destroy()`  to fix  memory leak.

Closes ducksboard#473
  • Loading branch information
jcp authored and vieron committed Apr 14, 2015
1 parent 595a94f commit b162932
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/jquery.gridster.js
Original file line number Diff line number Diff line change
Expand Up @@ -3118,6 +3118,10 @@
this.drag_api.destroy();
}

if (this.resize_api) {
this.resize_api.destroy();
}

this.remove_style_tags();

remove && this.$el.remove();
Expand Down

0 comments on commit b162932

Please sign in to comment.