File tree Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Original file line number Diff line number Diff line change 1
1
function toVal ( mix ) {
2
2
var k , y , str = '' ;
3
- if ( mix ) {
4
- if ( typeof mix === 'object' ) {
5
- if ( Array . isArray ( mix ) ) {
6
- for ( k = 0 ; k < mix . length ; k ++ ) {
3
+
4
+ if ( typeof mix === 'object' ) {
5
+ if ( Array . isArray ( mix ) ) {
6
+ for ( k = 0 ; k < mix . length ; k ++ ) {
7
+ if ( mix [ k ] ) {
7
8
if ( y = toVal ( mix [ k ] ) ) {
8
9
str && ( str += ' ' ) ;
9
10
str += y ;
10
11
}
11
12
}
12
- } else {
13
- for ( k in mix ) {
14
- if ( mix [ k ] ) {
15
- str && ( str += ' ' ) ;
16
- str += k ;
17
- }
13
+ }
14
+ } else {
15
+ for ( k in mix ) {
16
+ if ( mix [ k ] ) {
17
+ str && ( str += ' ' ) ;
18
+ str += k ;
18
19
}
19
20
}
20
- } else if ( typeof mix !== 'boolean' && ! mix . call ) {
21
- str += mix ;
22
21
}
22
+ } else if ( typeof mix !== 'boolean' && ! mix . call ) {
23
+ str += mix ;
23
24
}
25
+
24
26
return str ;
25
27
}
26
28
You can’t perform that action at this time.
0 commit comments