adobe/brackets — pull request #7106 by peterflynn (2014-03-06 08:01:27+00:00)
Title: Fix bug #6923: Brackets freezes for a while after saving when Find in Files  panel is open

Fix bug #6923 - Ensure we're not accumulating many copies of the FileSystem "change" listener.

jQuery happily adds duplicate listeners (even though, confusingly, removal with `.off()` removes all duplicates at once). Since `_showSearchResults()` is re-run any time you page through search results and many times when you're making text edits near a search result, you can easily accumulate 1000s of copies of the listener. On the next save or external change, Brackets will run all the listeners back to back, in some cases freezing for a minute or more.