Add some notes about logic decisions

Refs #1933
This commit is contained in:
Samuel Georges 2016-05-26 06:27:20 +10:00
parent ca8d8e4b39
commit 46480e2262

View File

@ -14,6 +14,8 @@
var dropdown = $(relatedTarget.relatedTarget).siblings('.dropdown-menu'),
dropdownContainer = $(this).data('dropdown-container')
// The dropdown menu should be a sibling of the triggering element (above)
// otherwise, look for any dropdown menu within this context.
if (dropdown.length === 0){
dropdown = $('.dropdown-menu', this)
}