bunti-node/js/modules/room.js

27 lines
502 B
JavaScript
Executable File

// 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"));