Optimize(dropdownToggle): Cleanup code and increase legibility

Not sure why I don't have write access to the bootstrap repo. Is that oversight or is there something I should know before being given permission?

Thank you!