Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aliases #65

Merged
merged 6 commits into from
Jan 9, 2017
Merged

Aliases #65

merged 6 commits into from
Jan 9, 2017

Conversation

psvet
Copy link
Owner

@psvet psvet commented Jan 9, 2017

Closes #62

@psvet psvet self-assigned this Jan 9, 2017
* Alias for requiredIf
*/
requireIf: function(def, value, key, errors, data) {
console.log('-----\n`requireIf` should be `requiredIf`\n-----')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's make this a bit clearer:

-----\nObey Warning: `requireIf` should be `requiredIf`\n----- 

* Alias for requiredIfNot
*/
requireIfNot: function(def, value, key, errors, data) {
console.log('-----\n`requireIfNot` should be `requiredIfNot`\n-----')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as L97

if (def.require) {
def.required = def.require
delete def.require
console.log('-----\n`require` should be `required`\n-----')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as comments above

@ksafranski
Copy link
Contributor

Besides the comments on the messaging 👍

@psvet psvet merged commit 0712c83 into master Jan 9, 2017
@psvet psvet deleted the aliases branch January 9, 2017 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants