26 lines
564 B
JavaScript
Executable File
26 lines
564 B
JavaScript
Executable File
// 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"));
|
|
|
|
|
|
|