Skip to content

Commit

Permalink
Fixes #16, factorize '_getValidity'
Browse files Browse the repository at this point in the history
  • Loading branch information
Zecat committed Jan 30, 2016
1 parent 9ec2ac2 commit 3c2fc81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iron-checked-element-behavior.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@
/**
* Returns false if the element is required and not checked, and true otherwise.
* @param {*=} _value Ignored.
* @return {boolean} true if `required` is false, or if `required` and `checked` are both true.
* @return {boolean} true if `required` is false or if `checked` is true.
*/
_getValidity: function(_value) {
return this.disabled || !this.required || (this.required && this.checked);
return this.disabled || !this.required || this.checked;
},

/**
Expand Down

0 comments on commit 3c2fc81

Please sign in to comment.