More fixes forjQuery/jQueryUI update issues

This commit is contained in:
Nathan Gray
2013-07-20 17:20:55 +00:00
parent f2906a1052
commit f4a6c9859a
12 changed files with 51 additions and 35 deletions

View File

@ -233,16 +233,19 @@ var et2_dialog = et2_widget.extend({
* Clean up dialog
*/
destroy: function() {
// Un-dialog the dialog
this.div.dialog("destroy");
if(this.template)
if(this.div != null)
{
this.template.clear();
this.template = null;
}
// Un-dialog the dialog
this.div.dialog("destroy");
this.div = null;
if(this.template)
{
this.template.clear();
this.template = null;
}
this.div = null;
}
// Call the inherited constructor
this._super.apply(this, arguments);