Skip to content

Commit

Permalink
bug fix showValue and hideValue methods
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgecasar committed Sep 5, 2015
1 parent 628124c commit ea774ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions input-password.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
* Action to show the input value
*/
_showValue: function() {
if( this.visible ) this.visible = true;
if( this.visible ) { this.visible = true; }
this.visible = true;
this.$.input.type = 'text';
if(this.visibleClass) {
Expand All @@ -129,7 +129,7 @@
* Action to hide the input value
*/
_hideValue: function() {
if( !this.visible ) this.visible = false;
if( this.visible ) { this.visible = false; }
this.$.input.type = 'password';
if(this.visibleClass) {
this.toggleClass(this.visibleClass, this.visible);
Expand Down

0 comments on commit ea774ff

Please sign in to comment.