         $("#search").keyup doSearch
         $("#search").change doSearch
 
+        # viewport.on "resize", (width, height) ->
+        # oSettings = table.fnSettings()
+        # oSettings.oScroll.sY = viewport.playlistHeight
+        # table.fnDraw();
 
 class PlayerRouter extends Backbone.Router
         routes:


        router = new PlayerRouter()

        playlistHeight = $(document).height() - $("#content").height()
        $(".remove-after-height-calculation").remove()

        queueTable = $("#queue")
        queueTable.data "targetHeight", playlistHeight
        playlist = $("#playlist")
        playlist.data "targetHeight", playlistHeight

        QueueView $("#toggle-queue"), queueTable, songQueue, playerInstance, playlist

        search = new Search localStorage


RESIZE_UPDATE_DELAY = 500
SEARCH_UPDATE_PRELOAD_DELAY = 2000
CONVERSION_WAIT_TIMEOUT = 180 * 60 * 1000

