     e.stopPropagation()
 
   select: (value) ->
-    #@selectButton.prop("checked", value)
-    #@selectButton.val(value)
     @setChecked @selectButton, value
     @select_(value)
 

    @selectButton = $$ ->
      @input {type: 'checkbox', class: "select input-checkbox"}
    @selectButton.click (e) => @clickSelect(e);
    #@selectButton.on 'mousedown', (e) -> e.preventDefault();
    #@selectButton.on 'mouseup', (e) -> e.preventDefault();
    jselect.append(@selectButton);
    @appendChild(selectElement);


    jdelete.append(deleteButton);
    @appendChild(deleteElement);

    $(@).click (e) =>
      if @.name == e.target.name or @.name == e.target.parentElement?.name
        @tableView.move(@)
        e.stopPropagation()

  setChecked: (checkbox, checked) ->
    if checkbox?
