From 7b2aadbdb4dabf7562320d9ecdff471afec45c8b Mon Sep 17 00:00:00 2001 From: Greg Franko Date: Wed, 23 Jan 2013 23:51:47 -0500 Subject: [PATCH] References #2 - Releasing Backbone.validateAll v0.2.0 --- src/javascripts/Backbone.validateAll.min.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/javascripts/Backbone.validateAll.min.js b/src/javascripts/Backbone.validateAll.min.js index 12e7492..9af72fc 100644 --- a/src/javascripts/Backbone.validateAll.min.js +++ b/src/javascripts/Backbone.validateAll.min.js @@ -1,4 +1,4 @@ -/*! Backbone.js plugin that provides an option to only validate Model properties that are currently being set or saved - v0.1.0 - 2012-08-29 +/*! Backbone.js plugin that provides an option to only validate Model properties that are currently being set or saved - v0.2.0 - 2013-01-23 * https://github.com/gfranko/Backbone.validateAll -* Copyright (c) 2012 Greg Franko; Licensed MIT */ -(function(a,b,c){a.Backbone&&a.Backbone.Model&&a.Backbone.Model.prototype._validate&&(a.Backbone.Model.prototype._validate=function(a,b){if(b.silent||!this.validate)return!0;b.validateAll!==!1&&(a=_.extend({},this.attributes,a));var c=this.validate(a,b);return c?(b&&b.error?b.error(this,c,b):this.trigger("error",this,c,b),!1):!0})})(window,document); \ No newline at end of file +* Copyright (c) 2013 Greg Franko; Licensed MIT */ +(function(e,t,n){e.Backbone&&e.Backbone.Model&&e.Backbone.Model.prototype._validate&&(e.Backbone.Model.prototype._validate=function(e,t){if(!t.validate||!this.validate)return!0;t.validateAll!==!1&&(e=_.extend({},this.attributes,e));var n=this.validationError=this.validate(e,t)||null;return n?(this.trigger("invalid",this,n,t||{}),!1):!0})})(window,document); \ No newline at end of file