 					detail: errorMessage
 
 			if getCookie("ShowFullError") is "Value=1"
-				iframe = document.createElement('iframe')				
+				iframe = document.createElement('iframe')
 				iframe.src = 'data:text/html;charset=utf-8,' + encodeURI(xhr.responseText)
 				$(iframe).css('width', '100%')
 				$(iframe).css('height', '900px')

		else
			@domElement.hide()
			@visible = false

class Messages
	constructor: (options = {}) ->
		defaultProperties = {}
		_.extend(@, defaultProperties, options)
		@messagesArray = []

		@bindAjaxError() if @ajaxError

	addMessage: (message, show = false) =>
		messageObj = new Message(message)
		@messagesArray.push messageObj
		messageObj.show(show) if show
		return messageObj

	removeMessage: (messageProperty) =>
		results = _.where(@messagesArray, messageProperty)
		for message, i in @messagesArray


		return

	###
	# Exibe a mensagem da tela
	# @method show
	# @param {Object|Number} fadeInObj caso preenchido, será passado como parametro para o método fadeIn do jQuery
	# @return 
	###
	show: (fadeInObj) =>
		if @usingModal
			visibleModal = $('.modal:visible')
