From b16293268c6aa4be2ba0c8fb1b9806e590227606 Mon Sep 17 00:00:00 2001 From: jcp Date: Mon, 1 Dec 2014 21:12:42 +0100 Subject: [PATCH] fix(gridster): destroy resize_api Call `resize_api.destroy()` to fix memory leak. Closes #473 --- src/jquery.gridster.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/jquery.gridster.js b/src/jquery.gridster.js index df211c59..de7f06d6 100755 --- a/src/jquery.gridster.js +++ b/src/jquery.gridster.js @@ -3118,6 +3118,10 @@ this.drag_api.destroy(); } + if (this.resize_api) { + this.resize_api.destroy(); + } + this.remove_style_tags(); remove && this.$el.remove();