         msg = m_opts.messageInstance ? @newMessage m_opts
 
         if m_opts.id?
-            msg.opts.id = m_opts.id
+            msg.options.id = m_opts.id
 
         if m_opts.progressMessage?
             msg.update $.extend {}, m_opts,


    if not func?
        if not $el.data('messenger')?
            $el.data('messenger', new ActionMessenger({el: $el}))
            $._messengerInstance = $el.data('messenger')

        return $el.data('messenger')
    else


class Messenger extends Backbone.View
    tagName: 'ul'
    className: 'messenger'

    OPT_DEFAULTS:
        type: 'info'

    initialize: (options) ->
        @history = []

    render: ->
        do @updateMessageSlotClasses

    findById: (id) ->
        _.filter @history, (rec) ->
