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

25 lines
373 B
JavaScript
Raw Normal View History

(function() {
'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,
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
});
}());