     return unless @visible
     super
     @getDomElement().remove()
-    KD.singletons["windowController"].removeLayer this
+    KD.singletons.windowController.removeLayer this
     @visible = no
 
   update:(o = @getOptions(), view = null)->

    if @getOptions().animate then @setClass 'out' else @hide()

    @addListeners()
    KD.singletons["windowController"].on "ScrollHappened", @bound "hide"

    @once "viewAppended", =>
      o = @getOptions()


    # converts NESW-Values to topbottomleftright and retains them in @getOptions
    @appendToDomBody()
    KD.singletons.windowController.addLayer this
    o = @translateCompassDirections o if o.gravity
    o.gravity = null

