mail/src/js/model/account-model.js

27 lines
495 B
JavaScript
Raw Normal View History

2013-06-10 21:14:57 -04:00
define(['backbone', 'js/app-config', 'js/model/folder-model'], function(Backbone, app) {
'use strict';
2013-03-13 11:58:46 -04:00
app.model.Account = Backbone.Model.extend({
2013-03-13 11:58:46 -04:00
defaults: {
emailAddress: null,
symKeySize: null,
symIvSize: null,
2013-05-18 19:33:59 -04:00
ssymKeySize: null,
folders: null
},
2013-03-13 11:58:46 -04:00
initialize: function() {
this.set('folders', new app.model.FolderCollection());
}
2013-03-13 11:58:46 -04:00
});
2013-03-13 11:58:46 -04:00
app.model.AccountCollection = Backbone.Collection.extend({
2013-03-13 11:58:46 -04:00
2013-04-19 05:45:53 -04:00
model: app.model.Account
});
return app.model.Account;
});