codecombat/app/collections/ThangTypes.coffee
phoenixeliot 870ae9a8a1 Add hero selector for courses mode
Use selected hero in Course mode play

Show selected hero on Courses (in progress)

Add hero select modal

Use short names, only show warriors

Use box-shadow instead of borders

Add tests for HeroSelectModal

Refactor modal opening test

Address code review feedback
2016-06-03 13:40:41 -07:00

11 lines
281 B
CoffeeScript

CocoCollection = require 'collections/CocoCollection'
ThangType = require 'models/ThangType'
module.exports = class ThangTypeCollection extends CocoCollection
url: '/db/thang.type'
model: ThangType
fetchHeroes: ->
@fetch {
url: '/db/thang.type?view=heroes'
}