 
   initialize: (options={}) ->
     { @width } = _.defaults options, { width: '400px' }
+
+    @templateData ||= {}
 
     @resize = _.debounce @updatePosition, 100
 

  # then fade back in and re-center
  reRender: ->
    Transition.fade @$body,
      out:  => @$body.html @template()
      in:   => @updatePosition()

  setWidth: (width) ->


    # Render inner
    @$body = @$('.modal-body')
    @$body.html @template(@templateData)
    @$dialog = @$('.modal-dialog')
    @setWidth()

