Backbone DB
Backbone database interface
api
/** the interface of the backbone-db exported module. * It invokes the correct DB interface methods on this or this.db * backbone-db .sync delegates CREATE, READ, UPDATE and DELETE to this interface _.extend(DB.prototype, Backbone.Events, { find: function(model, options, cb) {}, findAll: function(model, options, cb) {}, read: function(model, options, cb) {}, update: function(model, options, cb) {}, destroy: function(model, options, cb) {}, sync: function(method, model ,options) });**/ var store = 'mymodels'; var MyModel = BackboneModel; var me = username:"Nomon"; me;// Output: My username: Nomon