()
| 44 | } |
| 45 | |
| 46 | onLoaded () { |
| 47 | super.onLoaded() |
| 48 | this.concepts = new Concepts([]) |
| 49 | |
| 50 | this.listenTo(this.concepts, 'sync', () => { |
| 51 | schemas.concept.enum = _.map(this.concepts.models, c => c.get('key')) |
| 52 | return this.onConceptsLoaded() |
| 53 | }) |
| 54 | |
| 55 | return this.concepts.fetch({ data: { skip: 0, limit: 1000 } }) |
| 56 | } |
| 57 | |
| 58 | onConceptsLoaded () { |
| 59 | this.buildTreema() |
nothing calls this directly
no test coverage detected