From 632a2b3b67739937cdf7538cb5dfc86e935a8d52 Mon Sep 17 00:00:00 2001 From: Justin Ridgewell Date: Sat, 23 May 2015 12:33:08 -0400 Subject: [PATCH] Use defaults in #isValid --- backbone.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backbone.js b/backbone.js index 1dfbd9c5..f8564592 100644 --- a/backbone.js +++ b/backbone.js @@ -698,7 +698,7 @@ // Check if the model is currently in a valid state. isValid: function(options) { - return this._validate({}, _.extend(options || {}, { validate: true })); + return this._validate({}, _.defaults({validate: true}, options)); }, // Run validation against the next complete set of model attributes,