Skip to content

Commit

Permalink
fix; docs generation for embedded docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Mar 25, 2015
1 parent c339edd commit 06ee56c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/types/embedded.js
Expand Up @@ -187,11 +187,13 @@ EmbeddedDocument.prototype.invalidate = function (path, err, val, first) {
};

/**
* Marks a path as valid, causing validation to succeed
* Marks a path as valid, removing existing validation errors.
*
* @param {String} path the field to mark as valid
* @api public
* @method $markValid
* @api private
*/

EmbeddedDocument.prototype.$markValid = function(path) {
if (!this.__parent) {
return;
Expand All @@ -208,6 +210,7 @@ EmbeddedDocument.prototype.$markValid = function(path) {
* Checks if a path is invalid
*
* @param {String} path the field to check
* @method $isValid
* @api private
*/

Expand Down

0 comments on commit 06ee56c

Please sign in to comment.