             msg._actionInstance.then(handlers.success, handlers.error)
 
         return msg
-    
+
     # Aliases
     do: ActionMessenger::run
     ajax: (m_opts, args...) ->
         m_opts.action = $.ajax
-    
+
         @run(m_opts, args...)
 
     expectPromise: (action, m_opts) ->

$.extend Messenger,
    Message: RetryingMessage
    Messenger: ActionMessenger
    
    themes: Messenger.themes ? {}

$.globalMessenger = window.Messenger = Messenger

        unless m_opts.returnsPromise
            for type, handler of handlers
                old = opts[type]

                opts[type] = handler

        msg._actionInstance = m_opts.action opts, args...
