             reject(jqxhr.responseJSON)
       })
     )
-  

      @renderSelectors('.render')
      @trigger 'special-render'
    )
    
  getClassCode: -> @$('.class-code-input').val() or @signupState.get('classCode') 

  onInputClassCode: ->
    @classroom = new Classroom()

  fetchClassByCode: (classCode) ->
    if not classCode
      return Promise.resolve()

    new Promise((resolve, reject) ->
      new Classroom().fetchByCode(classCode, {
        success: resolve
