Skip to content

Commit

Permalink
Merge pull request #4842 from arciisine/patch-1
Browse files Browse the repository at this point in the history
Allowing callback to be optional
  • Loading branch information
vkarpov15 committed Dec 29, 2016
2 parents ecc6cfe + f5de529 commit b98b132
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 b98b132

Please sign in to comment.