mirror of
https://gitlab.com/Deukhoofd/BattleSim.git
synced 2025-09-02 17:07:19 +00:00
9 lines
194 B
CoffeeScript
9 lines
194 B
CoffeeScript
class @BattleCollection extends Backbone.Collection
|
|
model: Battle
|
|
|
|
isPlaying: ->
|
|
@find((battle) -> battle.isPlaying())?
|
|
|
|
playingBattles: ->
|
|
@filter((battle) -> battle.isPlaying())
|