public
Last active

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
 
var model = Backbone.Model.extend({
setProcessors: {
"name": requireLowerCase,
"sometingElse": someOtherFunction
},
 
requireLowerCase: function(value) {
return value.toLowerCase();
},
 
someOtherFunction: function(value) {
// Do something else
}
});

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.