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

27 lines
406 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
model: app.model.Account,
2013-03-13 11:58:46 -04:00
findByName: function(key) {}
});
}());