twitter/bootstrap — pull request #2461 by pelme (2012-03-08 13:43:07+00:00)
Title: Make it possible to filter specific elements in collapse

It is hard to use outer accordion-style collapsibles that themselves contains collapsibles.

The data-parent selector that is used to close other collapsibles it a bit coarse and closes *all* collapsibles, wheter they are the outer or the inner.

This patch adds an optional filter argument that can be used to filter out the specific elements that are part of the accordion, and not its child elements.