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

Method constructor

app/views/i18n/I18NEditModelView.js:47–61  ·  view source on GitHub ↗
(options, modelHandle)

Source from the content-addressed store, hash-verified

45 }
46
47 constructor (options, modelHandle) {
48 super(options)
49 this.onEditorChange = this.onEditorChange.bind(this)
50 this.modelHandle = modelHandle
51
52 this.model = new this.modelClass({ _id: this.modelHandle })
53 this.supermodel.trackRequest(this.model.fetch())
54 this.patches = new Patches()
55 this.listenTo(this.patches, 'change', function () { return this.renderSelectors('#patches-col') })
56 this.patches.comparator = '_id'
57 this.supermodel.trackRequest(this.patches.fetchMineFor(this.model))
58
59 this.selectedLanguage = me.get('preferredLanguage', true)
60 this.madeChanges = false
61 }
62
63 showLoading ($el) {
64 if ($el == null) { $el = this.$el.find('.outer-content') }

Callers

nothing calls this directly

Calls 3

fetchMineForMethod · 0.80
fetchMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected