     if throttle
       KD.utils.killWait @resizeNotifiersTimer
       @resizeNotifiersTimer = KD.utils.wait duration, fireResizeHandlers
-    else do fireResizeHandlers
-
-do -> new KDWindowController+    else do fireResizeHandlers
    delete @windowResizeListeners[instance.id]

  setWindowProperties:(event)->
    @winWidth  = $(window).width()
    @winHeight = $(window).height()

  notifyWindowResizeListeners:(event, throttle = no, duration = 17)->
    event or= type : "resize"

      @setWindowProperties event
      @notifyWindowResizeListeners event

    addListener "dragenter", (event)=>
      unless @dragInAction
        @emit 'DragEnterOnWindow', event
        @setDragInAction yes

    addListener "dragleave", (event)=>
      unless 0 < event.clientX < @winWidth and
             0 < event.clientY < @winHeight
        @emit 'DragExitOnWindow', event
        @setDragInAction no

    addListener "drop", (event)=>
      @emit 'DragExitOnWindow', event
      @emit 'DropOnWindow', event
      @setDragInAction no

    layers = @layers

    addListener 'mousedown', (e)=>
      # $('.twipsy').remove() # temporary for beta
      lastLayer = layers.last

