     # Adiciona o Elemento no DOM
     if @usingModal
       $(@domElement).on 'hidden', =>
+        @visible = false
         $(window).trigger('removeMessage.vtex', @)
       $(vtex.Messages.getInstance().modalPlaceholder).append(@domElement)
     else

      flagVisibleSet = false
      for modal in $('.modal.' + @classes.MESSAGEINSTANCE)
        modalData = $(modal).data('vtex-message')
        if modalData.domElement[0] isnt @domElement[0]
          flagVisibleSet = true
          $(modal).one 'hidden', =>
            $(@domElement).modal('show')

      if not flagVisibleSet
        $(@domElement).modal('show')

    if !@usingModal
      @domElement.show()
      # se necessário, cria timer para a mensagem
      if @.timeout? and @.timeout isnt 0
        window.setTimeout =>

      for i in [@messagesArray.length - 1..0] by -1
        currentMessage = @messagesArray[i]
        if (currentMessage.id is message.id)
          @messagesArray.splice(i,1)
          if !message.usingModal
            currentMessage.domElement.remove()
      @.changeContainerVisibility()

    ###
