node package manager
Stop wasting time. Easily manage code sharing in your team. Create a free org »

bindable-model

Alt ci

Example

Models:

 
 
var Person = model.Model.extend({
  sync: function (type, next) {
    if(type == "load") {
      // load something 
    } else if(type == "save") {
      // save something 
    }
  }
}); 
 
var p = new Person();