     defaultOptions:
         content: ''
         showCloseButton: true
+        escapeButtonCloses: true
         overlayClosesOnClick: true
         appendLocation: 'body'
         className: ''


        return true

    hideLoading:  ->
        $('.vex-loading-spinner').remove()


$ = jQuery

animationEndSupport = false

$ ->
    # Detect CSS Animation Support

    s = (document.body || document.documentElement).style
    animationEndSupport = s.animation isnt undefined or s.WebkitAnimation isnt undefined or s.MozAnimation isnt undefined or s.MsAnimation isnt undefined or s.OAnimation isnt undefined

    # Register global handler for ESC

    $(window).bind 'keyup.vex', (event) ->
        vex.closeByEscape() if event.keyCode is 27

# Vex

