()
| 33 | } |
| 34 | |
| 35 | initialize () { |
| 36 | this.processThangs = _.debounce(this.processThangs, 250) |
| 37 | |
| 38 | this.thangs = new ThangTypes() |
| 39 | this.listenTo(this.thangs, 'sync', this.onThangsLoaded) |
| 40 | return this.supermodel.trackRequest(this.thangs.fetch({ |
| 41 | data: { |
| 42 | project: 'name,tasks,slug' |
| 43 | } |
| 44 | })) |
| 45 | } |
| 46 | |
| 47 | onThangsLoaded (thangCollection) { |
| 48 | return this.processThangs() |