MCPcopy Index your code
hub / github.com/codecombat/codecombat / setTeam

Method setTeam

app/views/play/SpectateView.js:373–378  ·  view source on GitHub ↗
(team)

Source from the content-addressed store, hash-verified

371 }
372
373 setTeam (team) {
374 if (!_.isString(team)) { team = team != null ? team.team : undefined }
375 if (team == null) { team = 'humans' }
376 me.team = team
377 return Backbone.Mediator.publish('level:team-set', { team })
378 }
379
380 // Dynamic sound loading
381

Callers 1

onLevelLoaderLoadedMethod · 0.95

Calls 1

publishMethod · 0.80

Tested by

no test coverage detected