Preventing blur event on fields when dialog close button clicked

Preventing blur event on fields when dialog close button clicked

Hi. I have a modal dialog with a field that has some processing (validation, normalization) that happens on the blur event. I want to skip this if the close button is clicked. How can I do this?  Thanks.