Check to see if autocomplete is available before destroying

This commit is contained in:
Nathan Gray 2013-07-20 13:51:12 +00:00
parent 99921a823a
commit a21f6aedfe

View File

@ -457,7 +457,10 @@ var et2_link_entry = et2_inputWidget.extend(
this._super.apply(this, arguments); this._super.apply(this, arguments);
this.div = null; this.div = null;
this.search.autocomplete("destroy"); if(this.search.data("ui-autocomplete"))
{
this.search.autocomplete("destroy");
}
this.search = null; this.search = null;
this.app_select = null; this.app_select = null;
}, },