0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-06 04:08:22 +01:00

Collapse: Use $.fn.children instead of > in selector

Fixes #15131.
This commit is contained in:
Heinrich Fenkart 2014-11-14 15:18:34 +01:00
parent 14857bd4a2
commit a577f1922e

View File

@ -46,7 +46,7 @@
if (this.transitioning || this.$element.hasClass('in')) return if (this.transitioning || this.$element.hasClass('in')) return
var activesData var activesData
var actives = this.$parent && this.$parent.find('> .panel').children('.in, .collapsing') var actives = this.$parent && this.$parent.children('.panel').children('.in, .collapsing')
if (actives && actives.length) { if (actives && actives.length) {
activesData = actives.data('bs.collapse') activesData = actives.data('bs.collapse')