     @setClass "fx"                                if options.fx
     @setTitle options.title                       if options.title
     @setContent options.content                   if options.content
-    @addSubView options.view, ".kdmodal-content"  if options.view
+    @addSubView options.view                      if options.view
 
     @on 'ModalCancelled', options.cancel          if options.cancel
 

    @listenWindowResize()

  setDomElement:(cssClass)->

    {helpContent, helpTitle} = @getOptions()

    if helpContent

class KDModalView extends KDView

  constructor:(options = {}, data)->
    options.overlay       ?= no            # a Boolean
    options.overlayClick  ?= yes           # a Boolean
    options.height       or= "auto"        # a Number for pixel value or a String e.g. "100px" or "20%" or "auto"
