Skip to content

Commit

Permalink
Allowing callback to be optional
Browse files Browse the repository at this point in the history
This allows callback to be optional as `$__validate` assumes callback is defined and not optional.
  • Loading branch information
arciisine committed Dec 27, 2016
1 parent 90878d3 commit f5de529
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/document.js
Expand Up @@ -1232,7 +1232,7 @@ Document.prototype.validate = function(options, callback) {
options = null;
}

this.$__validate(callback);
this.$__validate(callback || function() {});
};

/*!
Expand Down

0 comments on commit f5de529

Please sign in to comment.