 class TokenTextArea
   WORD_REGEX: /[a-z]+$/i
-
-  SUCCESS_COLOR: '#64b80b;'
-  ERROR_COLOR: '#b94a48;'
-  NEUTRAL_COLOR: '#E0E0E0;'
-  BLACK_COLOR: '#000000;'
-
-  SUCCESS_MSG: 'Valid equation'
-  ERROR_MSG: 'Syntax error in equation'
-  CHECKING_MSG: 'Checking equation...'
 
   constructor: (@element, @options = {}) ->
     # Return if readonly (display) mode.

    html = html.replace(/&nbsp;/g, ' ')
    html = html.replace(/[\s]+/g, ' ')
    @input.html(html)

  showSuccess: ->
    @element.removeClass "invalid"
    @element.removeClass "maybevalid"
    @element.addClass "valid"
    @msg.html(@SUCCESS_MSG)
    @msg.css('color', @SUCCESS_COLOR)

  showError: ->
    @element.removeClass "valid"
    @element.removeClass "maybevalid"
    @element.addClass "invalid"
    @msg.html(@ERROR_MSG)
    @msg.css('color', @ERROR_COLOR)

  showChecking: ->
    @element.removeClass "valid"
    @element.removeClass "invalid"
    @element.addClass "maybevalid"
    @msg.html(@CHECKING_MSG)
    @msg.css('color', @NEUTRAL_COLOR)
      
$.fn.tokenTextArea = (options, args...) ->
  @each ->

    @element.append @resultMenu
    @resultList = @resultMenu.find "ul"

  selectNextResult: (offset) ->
    items = @resultList.find("li")
    currentIndex = items.index(items.filter(".selected"))
