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

Method getCurrentView

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

Source from the content-addressed store, hash-verified

600 }
601
602 getCurrentView () {
603 let currentViewID = this.$el.find('.tab-pane.active').attr('id')
604 if (currentViewID === 'editor-level-patches') { return this.patchesView }
605 if (currentViewID === 'editor-level-documentation') { currentViewID = 'components-documentation-view' }
606 return this.subviews[_.string.underscored(currentViewID)]
607 }
608
609 startPatchingLevel (e) {
610 this.openModalView(new SaveVersionModal({ model: this.level }))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected