From 1fd5ccdd68804bc9c0ed64d98e0f1a9d9e0f0315 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Sun, 6 Nov 2011 17:15:15 -0800 Subject: [PATCH] fade --- src/modal.coffee | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modal.coffee b/src/modal.coffee index cf8b4cba8..88565552c 100644 --- a/src/modal.coffee +++ b/src/modal.coffee @@ -33,7 +33,7 @@ class Modal $('body').append $(@template).hide() $('#modal .content').append @html - $('#modal').show() + $('#modal').fadeIn 200 @resize() Event.trigger 'modal:show', @ @@ -45,7 +45,6 @@ class Modal hide: -> @showing = false - $('#modal, #modal-overlay').remove() $('#modal').fadeOut -> $(this).remove() $('#modal-overlay').fadeOut 200, -> $(this).remove() $(document).unbind '.modal'