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

simplify isBooleanAttribute #522

Merged
merged 1 commit into from
Mar 2, 2016
Merged

simplify isBooleanAttribute #522

merged 1 commit into from
Mar 2, 2016

Conversation

alexlamsl
Copy link
Collaborator

Reduce line count on isBooleanAttribute, also added a test to clarify its case-insensitivity.

else {
return (-1 === attrValueEnumeration.indexOf(attrValue.toLowerCase()));
}
return isSimpleBoolean(attrName) || attrName === 'draggable' && !draggableBoolean(attrValue);
Copy link
Owner

Choose a reason for hiding this comment

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

I think isBooleanValue (instead of draggableBoolean) would be clearer here.

@alexlamsl
Copy link
Collaborator Author

@kangax variable renamed, commit amended and pushed.

kangax added a commit that referenced this pull request Mar 2, 2016
@kangax kangax merged commit 0dfd930 into kangax:gh-pages Mar 2, 2016
@alexlamsl alexlamsl mentioned this pull request Mar 8, 2016
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