MCPcopy Create free account
hub / github.com/codecombat/codecombat / addTypesToSelect

Method addTypesToSelect

app/views/i18n/I18NHomeView.js:253–259  ·  view source on GitHub ↗
(e, types)

Source from the content-addressed store, hash-verified

251 }
252
253 addTypesToSelect (e, types) {
254 const $select = e
255 $select.empty()
256 $select.append($('<option>').attr('value', '').text('Select One...'))
257 return Array.from(types).map((type) =>
258 $select.append($('<option>').attr('value', type).text(type)))
259 }
260
261 onTypeSelectChanged (e) {
262 this.selectedType = $(e.target).val()

Callers 1

afterRenderMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected