         .addClass 'color-' + @newColor  
 
       $modal.modal('hide')
-
 
       @update()  
 


  makeColorList: ->
    colors = ["white", "blue", "green", "yellow", "red"]

    colorHtml = ''

    for index, color of colors


      attributes       = $block.data 'attributes'
      previousColor    = attributes.color     
      @newColor        = $target.data('color-item')
      attributes.color = @newColor

      $block
