     , 1
 
     @log "This code isn't working."
-    $(this.el[1]).sortable
-      distance: 10
-      scroll: false
-      cursorAt:
-        top: 15
-        left: 30
-      helper: (event, task) ->
-        id = $(task).attr("id")
-        element = "<div data-id=\"#{ id }\" class=\"helper\">#{ $(task).find('.name').text() }</div>"
-        $("body").append(element)
-        $("[data-id=#{ id }]")
-
     console.timeEnd("test")
 
   new: (e) ->

          html = "<div class=\"sep\"></div>" + html
        last = task.priority
        html = @template(task) + html
    else
      for task in tasks
        html = @template(task) + html

    @tasks.html html


    Task.bind "refresh", @render
    List.bind "changeList", @render
    Settings.bind "changeSort", @render

    $("body").on "mouseover", ".main .task", ->

      if Settings.sortMode()
        $(this).draggable
          distance: 10
          scroll: false
          cursorAt:
            top: 15
            left: 30
          helper: (event, task) ->
            console.log(this, event)
            id = $(task).attr("id")
            element = "<div data-id=\"#{ id }\" class=\"helper\">#{ $(this).find('.name').text() }</div>"
            $("body").append(element)
            $("[data-id=#{ id }]")

  addOne: (task) =>
    @tasks.prepend @template task
