machineboy2045/angular-selectize — pull request #20 by alexanderchan (2014-11-27 08:58:49+00:00)
Title: fix(selectize): prevent memory leak by cleaning up on $destroy

If the selectize control is added and removed there are some listeners that remain that prevent garbage collection. Listen to the `$destroy` event and destroy the selectize component and cleanup the element.