When a user clicks anywhere outside of that <div>, the closeThis() function in your controller will execute. But if the user clicks on the my-button element, that won't count as a click-outside. This lets you define elements that should be ignored.