Created by: cervengoc
Enhance hiding logic of dropdowns to allow more flexible customization.
- Pass the
click
event which is about to hide the dropdowns tohide.bs.dropdown
event parameters asrelatedEvent
, so developers can decide to hide or not using for examplee.relatedEvent.target
. - Expose
clearMenus
as a static method ofDropdown
so it can be overridden by developers just as prototype methods