// js/modules/room.js // Module reference argument, assigned at the bottom (function (Room) { // Dependencies var Control = app.module("control"); // The basic person model Room.Model = Backbone.Model.extend({ defaults: { roomId: null, title: 'undefined', controls: Control.List } }); Room.List = Backbone.Collection.extend({ model: Room.Model }); })(app.module("room"));