silverstripe/silverstripe-framework — pull request #3286 by mateusz (2014-07-13 23:24:09+00:00)
Title: BUG Make UI widget destroys more consistent to avoid exceptions.

Selectable would throw an exception in the GridField.js if destroy
called from onunmatch - at that stage jQuery UI would have had called
the destroy already. Add a guard, and change to onremove, which triggers
before the element is removed from DOM.