Changeset 5470
- Timestamp:
- 05/06/08 14:54:53 (7 months ago)
- Files:
-
- 1 modified
-
trunk/jquery/src/core.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/jquery/src/core.js
r5463 r5470 1195 1195 var value = callback( elems[ i ], i ); 1196 1196 1197 if ( value !== null && value != undefined ) { 1198 if ( value.constructor != Array ) 1199 value = [ value ]; 1200 1201 ret = ret.concat( value ); 1202 } 1203 } 1204 1205 return ret; 1197 if ( value != null ) 1198 ret[ ret.length ] = value; 1199 } 1200 1201 return ret.concat.apply( [], ret ); 1206 1202 } 1207 1203 });
