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

#257 Fix for initialValidity set up #259

Merged
merged 1 commit into from
Dec 13, 2016
Merged

Conversation

Nazanin1369
Copy link
Collaborator

Here is a fix for initialValidity set up from the scope instead of attrs

@Nazanin1369 Nazanin1369 changed the title ❇️ #257 Fix for initialValidity set up #257 Fix for initialValidity set up Nov 5, 2016
@coveralls
Copy link

coveralls commented Nov 5, 2016

Coverage Status

Coverage remained the same at 93.617% when pulling 0640de7 on Nazanin1369:master into 6fc5b4b on huei90:master.

var initialValidity;
if (typeof scope.initialValidity === 'boolean') {
initialValidity = scope.initialValidity;
var initialValidity = void 0;
Copy link
Owner

Choose a reason for hiding this comment

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

why void 0 here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

void 0 is the best way to initialize any variable in Javascript. What it actually does is evaluating the expression and returning undefined.

@hueitan hueitan merged commit c92d8d7 into hueitan:master Dec 13, 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.

3 participants