convert array instance to shorthand syntax

This commit is contained in:
BrandynL 2019-10-28 09:35:39 -04:00
parent 3fb3325e93
commit 925bad1faf
1 changed files with 2 additions and 2 deletions

View File

@ -85,10 +85,10 @@ jQuery( function( $ ) {
$( '.show-password-input' ).hover(
function() {
$( this ).siblings( array( 'input[name="password"]', 'input[type="password"]' ) ).prop( 'type', 'text' );
$( this ).siblings( ['input[name="password"]', 'input[type="password"]'] ).prop( 'type', 'text' );
},
function() {
$( this ).siblings( array( 'input[name="password"]', 'input[type="password"]' ) ).prop( 'type', 'password' );
$( this ).siblings( ['input[name="password"]', 'input[type="password"]'] ).prop( 'type', 'password' );
}
);
});