jquery/jquery-ui — pull request #1156 by scottgonzalez (2014-01-02 21:53:53+00:00)
Title: Tooltip: Only bind remove handler for delegated tooltips

The remove handler was being added for every tooltip, but only removed for
delegated tooltips. The default destroy behavior already handles non-delegated
tooltips, so the handler should only be added for delegated tooltips.

Fixes #9531

I'm not sure if there's a reasonable way to test this. We don't generally test for memory leaks.