JSHint and coding style fixes for xfn.js.

props dougwollison.
fixes #26030.


git-svn-id: https://develop.svn.wordpress.org/trunk@26174 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2013-11-14 21:57:11 +00:00
parent c380f3276a
commit c137a8979a

View File

@ -7,9 +7,10 @@ jQuery(document).ready( function($) {
$( this ).prop( 'disabled', true ).parent().addClass( 'disabled' );
} else {
$( this ).removeAttr( 'disabled' ).parent().removeClass( 'disabled' );
if ( $(this).is(':checked') && $(this).val() != '')
if ( $( this ).is( ':checked' ) && $( this ).val() !== '') {
inputs += $( this ).val() + ' ';
}
}
});
$( '#link_rel' ).val( ( isMe ) ? 'me' : inputs.substr( 0,inputs.length - 1 ) );
});