()
| 249 | } |
| 250 | |
| 251 | fetchClans () { |
| 252 | if (this.classroom.get('ownerID') === me.id) { |
| 253 | return clansApi.getMyClans().then(this.onMyClansLoaded) |
| 254 | } else if (this.classroom.hasReadPermission()) { |
| 255 | return clansApi.getUserClans(this.classroom.get('ownerID')).then(this.onMyClansLoaded) |
| 256 | } |
| 257 | } |
| 258 | |
| 259 | attachMediatorEvents () { |
| 260 | // Model/Collection events |
no test coverage detected