Update Popup.js

Only fire off onHiding event if animation is enabled.