dropdown js: popup close bug fixes
dropdown js: popup close bug fixes

* don't look at whether the popup is open or not when toggling,
  always toggle
* in `onPopupClose`, only call `doPopupClose` if the popup is
  actually open
* in `onWindowBodyClick`, only call `doPopupClose if the target
  is not the popup _or_ the elem

This corrects a few cases where `doPopupClose` was getting called
multiple times unnecessarily.  This caused other dropdowns to not
bind properly when their opening triggered the original dropdown
to close.

redding/romo,redding/romo,redding/romo