-# Aha's colorPicker plugin that Listens to the "changeColor" event 
+# Aha's colorPicker plugin that emits the "changeColor" event
 class ColorPicker
   template: '<div class="small-colorpicker">' +
               '<div class="small-colorpicker-colors"></div>' + 

    rgb = @hexToRGB(hex)
    @hexColor = hex
    @color = ((1 << 24) | (parseInt(rgb.r) << 16) | (parseInt(rgb.g) << 8) | parseInt(rgb.b))

  placePicker: () ->
    @picker.show()

    @input.on 'change', (event) =>
      hex = $(event.target).val()
      @setHexColor(hex)
    @input.on 'click', (event) =>
      @picker.css("opacity", 0)

