This enables the modal to be closed by external factors outside of the modal's controller. Also made the cleanUpClose function a little more null safe as we've seen a handful of null reference errors inside this code in the past.
Coverage increased (+0.2%) to 86.154% when pulling c7939146a230e5a1a7d9e7eef5aabf569dfe8b69 on vend:close-modal-fn into 2c07464da8b661d6721827809f61e1870733bcd6 on dwmkerr:master.
This enables the modal to be closed by external factors outside of the modal's controller. Also made the
cleanUpClose
function a little more null safe as we've seen a handful of null reference errors inside this code in the past.