From 0fe7f23c981eec822e0264aa6421970c85c02469 Mon Sep 17 00:00:00 2001 From: jcp Date: Mon, 1 Dec 2014 21:12:42 +0100 Subject: [PATCH] fix (Gridster.js): destroy resize_api Call resize_api.destroy() to fix memory leak. --- src/jquery.gridster.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/jquery.gridster.js b/src/jquery.gridster.js index 7bac9118..9fb156d8 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();