No ticket: fix code style inconsistencies. Closes gh-1361

This commit is contained in:
Oleg
2013-09-11 05:08:01 +04:00
parent e12746d756
commit cb37994d76
15 changed files with 32 additions and 31 deletions

View File

@@ -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" ) );

View File

@@ -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 + "";
});
}