should check for alert class not alertmessage

This commit is contained in:
Jacob Thornton 2012-01-20 13:50:36 -08:00
parent 93c8152216
commit 3ed836b198
1 changed files with 1 additions and 2 deletions

View File

@ -43,13 +43,12 @@
e && e.preventDefault()
$parent.length || ($parent = $this.hasClass('alert-message') ? $this : $this.parent())
$parent.length || ($parent = $this.hasClass('alert') ? $this : $this.parent())
$parent.removeClass('in')
function removeElement() {
$parent.remove()
$parent.trigger('closed')
}