You should provide a destroy method to unbind all events and make sure no memory is still used, similar to jquery destroy: http://api.jqueryui.com/autocomplete/#method-destroy