 
 START_LOAD = (new Date()).getTime()
 
+SEARCH_WORKER = new Worker "/search.js"
+
 $(document).ready ->
   $('[data-toggle=tooltip]').tooltip({delay: { show: 400, hide: 100 }})
 

    createPlayerElements filesDisplay, directoriesSearch, filesSearch

  createPlayerElements = (filesDisplay, directoriesSearch, filesSearch) ->
    search = new Search localStorage
    search.initialize directoriesSearch, filesSearch

    songQueue.updateAll filesDisplay



class Search
  constructor: (@worker, @storage) ->
    _.extend @, Backbone.Events
    @worker.onmessage = (event) =>
      @_handle event.data
    @searchId = 0
