node-barefoot
Version:
Barefoot makes code sharing between browser and server reality. Write your application once and run it on both ends of the wire.
18 lines (16 loc) • 574 B
JavaScript
/** Class: Barefoot.Model
* For the moment, the Barefoot model does not introduce any new
* functionalities to Backbones model. But to keep things straight when
* building your application with barefoot, <Barefoot.Model> is also
* available :)
*
* If you are interested into how a model is synced on the server, have a look
* at <Barefoot.APIAdapter.Server.sync>.
*/
var Backbone = require('backbone')
, _ = require('underscore');
var Model = Backbone.Model.extend({});
module.exports = function(mixin) {
_.extend(Model.prototype, mixin);
return Model;
};