From 4a7dc335bdb4fe87dfb0084962cc032b58ee409d Mon Sep 17 00:00:00 2001 From: ssured Date: Thu, 25 Apr 2013 16:09:43 +0300 Subject: [PATCH] Properly clean up jQuery UI on destroy --- js/app.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/app.js b/js/app.js index e41bc42..2171f35 100755 --- a/js/app.js +++ b/js/app.js @@ -38,8 +38,11 @@ JQ.Widget = Em.Mixin.create({ this.removeObserver(prop, observers[prop]); } } - ui._destroy(); + ui.destroy(); + this.set('ui', null); } + + this._super(); }, // Each jQuery UI widget has a series of options that can be configured.