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

Method sendLevel

app/views/editor/level/LevelEditView.js:555–557  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

553 return noty({ timeout: 4000, text: 'Error: child window disconnected, you will have to reload this page to preview.', type: 'error', layout: 'top' })
554 }
555 const sendLevel = () => {
556 return this.childWindow.Backbone.Mediator.publish('level:reload-from-data', { level: this.level, supermodel: this.supermodel })
557 }
558 if (this.childWindow && !this.childWindow.closed && (this.playClassMode === newClassMode) && (this.playClassLanguage === newClassLanguage)) {
559 // Reset the LevelView's world, but leave the rest of the state alone
560 sendLevel()

Callers

nothing calls this directly

Calls 1

publishMethod · 0.80

Tested by

no test coverage detected