Namespace Crayon.Validate
Holds functionality for validations
Defined in: validate.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
<static> |
Crayon.Validate.require(doc, field, message)
Validate the field value is neither undefined nor null.
|
<static> |
Crayon.Validate.unchanged(newDoc, oldDoc, field, message)
Validate the field value is not changed.
|
Method Detail
<static>
Crayon.Validate.require(doc, field, message)
Validate the field value is neither undefined nor null.
- Parameters:
- doc
- field
- message
<static>
Crayon.Validate.unchanged(newDoc, oldDoc, field, message)
Validate the field value is not changed.
- Parameters:
- newDoc
- oldDoc
- field
- message