 
     handle = if options.handle and options.handle instanceof KDView then handle else @
 
-    @listenTo 
+    @listenTo
       KDEventTypes       : "mousedown"
       listenedToInstance : handle
       callback           : (pubInst, event)=>
-        
+
         if "string" is typeof options.handle
           return if $(event.target).closest(options.handle).length is 0
-        
+
         top    = parseInt @$().css("top"), 10
-        right  = parseInt @$().css("right"), 10         
+        right  = parseInt @$().css("right"), 10
         bottom = parseInt @$().css("bottom"), 10
         left   = parseInt @$().css("left"), 10
 

    @setPosition options.position                 if options.position
    @setPartial options.partial                   if options.partial
    @addEventHandlers options
    
    if options.pistachio
      @setTemplate options.pistachio
      @template.update()
    
    @setDelegate options.delegate                 if options.delegate
    @setLazyLoader options.lazyLoadThreshold      if options.lazyLoadThreshold
    

    @setTooltip options.tooltip if options.tooltip
    @setDraggable options.draggable if options.draggable
      

    @bindEvents()


    if @items?
      subViews = subViews.concat [].slice.call @items
    subViews

  removeSubView:(subViewInstance)->
    for subView,i in @subViews
      if subViewInstance is subView
