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

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


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