Skip to content

Commit

Permalink
Collapse: Use $.fn.children instead of > in selector
Browse files Browse the repository at this point in the history
Fixes twbs#15131.
  • Loading branch information
hnrch02 committed Nov 14, 2014
1 parent 14857bd commit a577f19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/collapse.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
if (this.transitioning || this.$element.hasClass('in')) return

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) {
activesData = actives.data('bs.collapse')
Expand Down

0 comments on commit a577f19

Please sign in to comment.