     if @task_number>1
       @show_combined_rubric_current()
       @show_results_current()
-
-  # locally scoped jquery.
-  $: (selector) ->
-    $(selector, @el)
 
   show_results_current: () =>
     data = {'task_number' : @task_number-1}

    @category = $(@categories.first())
    @category.prepend('> ')
    @category_index = 0
    
    
  @keypress_callback: (event) =>
    # don't try to do this when user is typing in a text input
    if $(event.target).is('input, textarea')


    # valid states: 'initial', 'assessing', 'post_assessment', 'done'
    Collapsible.setCollapsibles(@el)
    @submit_evaluation_button = @$('.submit-evaluation-button')
    @submit_evaluation_button.click @message_post

    @results_container = @$('.result-container')
    @combined_rubric_container = @$('.combined-rubric-container')

    @legend_container= @$('.legend-container')
    @show_legend_current()

    # Where to put the rubric once we load it

    @oe = @$('section.open-ended-child')
    @errors_area = @$(@oe).find('.error')
    @answer_area = @$(@oe).find('textarea.answer')
    @prompt_container = @$(@oe).find('.prompt')
    @rubric_wrapper = @$(@oe).find('.rubric-wrapper')
    @hint_wrapper = @$(@oe).find('.hint-wrapper')
    @message_wrapper = @$(@oe).find('.message-wrapper')
    @submit_button = @$(@oe).find('.submit-button')
    if @child_type=="openended"
      @skip_button = @$(@oe).find('.skip-button')
      @skip_button.click @skip_post_assessment

    @file_upload_area = $(@oe).find('.file-upload')
    @can_upload_files = false
    @open_ended_child= $(@oe).find('.open-ended-child')

    @out_of_sync_message = 'The problem state got out of sync.  Try reloading the page.'

