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