Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set: function(attrs, options) {
- _.each(attrs, function(val, key) {
- if(!!this.validations[key])
- attrs[key] = this.filters[ this.validations[key].filter ](val);
- }, this);
- Backbone.Model.prototype.set.call(this, attrs, options);
- return this;
- },
Advertisement
Add Comment
Please, Sign In to add comment