 
   components:
     'nces-search-input': NcesSearchInput
-    
+
   methods:
     updateValue: (name, value) ->
       @[name] = value

    if me.showChinaRegistration()
      @country = 'China'
    else
      if me.get('country') and !!_.find(countries, (c) => c.country is _.string.slugify(me.get('country')))
        @country = _.string.titleize(_.string.humanize(me.get('country')))
      else
        @country = 'United States'


      if name is 'district'
        @clearSchoolNcesValues()
        @clearDistrictNcesValues()

    clearDistrictNcesValues: ->
      for key in DISTRICT_NCES_KEYS
        @['nces_' + key] = ''

    clearSchoolNcesValues: ->
      for key in _.difference(SCHOOL_NCES_KEYS, DISTRICT_NCES_KEYS)
        @['nces_' + key] = ''
