mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
No ticket: fix code style inconsistencies. Closes gh-1361
This commit is contained in:
@@ -49,10 +49,12 @@ jQuery.fn.extend({
|
||||
// Treat null/undefined as ""; convert numbers to string
|
||||
if ( val == null ) {
|
||||
val = "";
|
||||
|
||||
} else if ( typeof val === "number" ) {
|
||||
val += "";
|
||||
|
||||
} else if ( jQuery.isArray( val ) ) {
|
||||
val = jQuery.map(val, function ( value ) {
|
||||
val = jQuery.map( val, function( value ) {
|
||||
return value == null ? "" : value + "";
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user