1
0
mirror of https://gitlab.com/Deukhoofd/BattleSim.git synced 2025-09-02 17:07:19 +00:00
2016-02-01 23:19:30 +01:00

10 lines
283 B
CoffeeScript

class @Rooms extends Backbone.Collection
model: Room
# Delegate room events to every single room in this collection.
for eventName in Room::EVENTS
do (eventName) =>
this::[eventName] = (args...) ->
@each (room) ->
room[eventName].apply(room, args)