silverstripe/sapphire — pull request #1053 by unclecheese (2012-12-18 14:42:07+00:00)
Title: Fix edge case in which uninitialized buttons are being destroyed.

In certain cases, the button may not yet be initialized or may no longer have button properties at the time of removal from the DOM. Without this check, an uncaught exception is thrown.