adobe/brackets — pull request #2097 by njx (2012-11-11 00:29:39+00:00)
Title: Keep recent projects dropdown open when deleting a project. 

As part of this, refactored the code to be less nested by breaking out the various rendering functions out of the `toggle()` closure.

Note that this introduces a JSLint error due to the circular dependency between `renderList()` and `renderDelete()` (via `renderPath()`). I can't think of a good way to resolve this that doesn't make the organization of the code actually worse--the way I have it factored right now seems logical to me (`renderList()` is a series of `renderPath()`s; the hover handler in `renderPath()` calls `renderDelete()`; when the delete button is clicked the list needs to be re-rendered). If I completely refactored this into a model/view, I could avoid that problem, but that really seems like overkill here.