mirror of
https://github.com/jquery/jquery.git
synced 2026-02-11 01:45:13 -05:00
No ticket: fix code style inconsistencies. Closes gh-1361
This commit is contained in:
@@ -2,7 +2,7 @@ define([
|
||||
"../var/support"
|
||||
], function( support ) {
|
||||
|
||||
(function () {
|
||||
(function() {
|
||||
var input = document.createElement( "input" ),
|
||||
select = document.createElement( "select" ),
|
||||
opt = select.appendChild( document.createElement( "option" ) );
|
||||
|
||||
@@ -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