bunti-node/js/modules/devices/device.js

26 lines
564 B
JavaScript
Raw Normal View History

// js/modules/controls.js
// Module reference argument, assigned at the bottom
// every device gets its model from the base and is rendered into seperate viewbases
(function (Control) {
// Dependencies
var Option = app.module("option");
Device.Model = Backbone.Model.extend({
defaults: {
options: Option.List
},
initialize: function () {
}
});
Device.List = Backbone.Collections.extend({
model: Control.Model
});
})(app.module("control"));