       _.extend(@, defaultProperties, options)
 
       @buildPlaceholderTemplate()
-      @startEventListeners()
+      @registerEventListeners()
       @bindAjaxError() if @ajaxError
 
     ###


    ###
    # Inicia a API de eventos
    # @method startEventListeners
    # @param
    # @return
    ###
    startEventListeners: ->
      if window
        $(window).on "addMessage.vtex", (evt, message, show) =>
          @addMessage(message, if show? then show else true)
        $(window).on "clearMessages.vtex", (evt, usingModal = false) =>
          @removeAllMessages(usingModal)
        $(".vtex-front-messages-close-all").on "click", (evt, usingModal = false) =>

    changeContainerVisibility: ->
      notModalMessages = _.filter @messagesArray, (message) =>
        message.usingModal is false
      if !notModalMessages
        $(vtex.Messages.getInstance().placeholder).hide();

    ###
