   close: (callback) ->
     $(window).off 'keyup.modalize'
     @scrollbar.reenable()
+    @trigger 'closing'
     @state 'close', =>
       @subView?.remove?()
       @remove()
       callback?()
+      @trigger 'closed'

  postRender: ->
    unless @__postRendered__
      @__postRender__()
    else
      @subView.render().$el
    this

  render: ->
    unless @__rendered__
      @__render__()
      @trigger 'opening'
    @postRender()
    this

