Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 10th, 2012  |  syntax: None  |  size: 0.29 KB  |  hits: 3  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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.     },