Skip to content

Commit

Permalink
fix the bug of Notification
Browse files Browse the repository at this point in the history
  • Loading branch information
imyelo committed Sep 12, 2013
1 parent c5718e3 commit bb89fcc
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/modules/Lungo.Notification.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,15 @@ Lungo.Notification = do(lng = Lungo) ->
@method hide
###
hide = ->
_window.removeClass("show")
wait = 0
unless _window.hasClass("show")
wait = (TRANSITION.DURATION / 2)
setTimeout (->
_el.removeClass("show").removeClass("html").removeClass("confirm").removeClass("notify").removeClass "growl"
), (TRANSITION.DURATION / 2)
_window.removeClass("show")
setTimeout (->
_el.removeClass("show").removeClass("html").removeClass("confirm").removeClass("notify").removeClass "growl"
), (TRANSITION.DURATION / 2)
), wait


###
Expand Down

0 comments on commit bb89fcc

Please sign in to comment.