twitter/bootstrap — pull request #5176 by paulingalls (2012-09-18 06:21:41+00:00)
Title: Enable multiple dropdowns when using attributes instead of javascript

Currently, if you use multiple dropdowns in different parts of the page, only one of the dropdowns successfully clears when you click the background. This only occurs if you are not using javascript to toggle, but are relying on the data attributes to enable dropdown behavior.

The change is to the clearMenus function, which now iterates through each dropdown and clears the open tag from its parent. Before this would only clear the open tag from the first parent.

A test has been added that exposes the problem, but passes with the change.