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