 
   render: (list) =>
 
+    if @timers.bindTasks? then clearTimeout @timers.bindTasks
+
     @el.removeClass "empty"
 
     # Update current list if the list is changed


    @tasks[0].innerHTML = html

    setTimeout =>
      for task in tasks
        view = new TaskItem
          task: task
          el: @tasks.find("#task-#{ task.id }")
        @items[@items.length] = view
    , 1000

    # Handles Empty List
    @el.addClass "empty" if tasks.length == 0

    # Focuses Thing
    setTimeout =>
      @input.focus()
    , 500

  new: (e) ->
    val = @input.val()


  # Store currently loaded tasks
  items: []
  timers: {}

  constructor: ->
    super
