From d5aadc98b335e064e9c9339566f55b6e9076dbc1 Mon Sep 17 00:00:00 2001 From: mconaway Date: Fri, 31 Jul 2015 09:50:29 -0400 Subject: [PATCH] fix(method): destructor incomplete change gridster destructor to properly clean up resize events and prevent possible "RangeError: Maximum call stack size exceeded" error in Ember/MVC applications Closes #527 --- src/jquery.gridster.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/jquery.gridster.js b/src/jquery.gridster.js index 7bac9118..ae28d381 100755 --- a/src/jquery.gridster.js +++ b/src/jquery.gridster.js @@ -3117,7 +3117,10 @@ if (this.drag_api) { this.drag_api.destroy(); } - + if(this.resize_api) { + this.resize_api.destroy(); + } + this.remove_style_tags(); remove && this.$el.remove();