Guest User

Untitled

a guest
Jul 10th, 2012
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. set: function(attrs, options) {
  2. _.each(attrs, function(val, key) {
  3. if(!!this.validations[key])
  4. attrs[key] = this.filters[ this.validations[key].filter ](val);
  5. }, this);
  6.  
  7. Backbone.Model.prototype.set.call(this, attrs, options);
  8. return this;
  9. },
Advertisement
Add Comment
Please, Sign In to add comment