1
0
mirror of https://gitlab.com/Deukhoofd/BattleSim.git synced 2025-09-02 17:07:19 +00:00
BattleSim/client/app/js/collections/battles/battle_collection.coffee
2016-02-01 23:19:30 +01:00

9 lines
194 B
CoffeeScript

class @BattleCollection extends Backbone.Collection
model: Battle
isPlaying: ->
@find((battle) -> battle.isPlaying())?
playingBattles: ->
@filter((battle) -> battle.isPlaying())