Skip to content
Permalink
Browse files

fixing spacing on blocks (using tabs instead of spaces)

  • Loading branch information
jboesch committed Feb 21, 2011
1 parent edf63d0 commit 5892800cf9886a5a99b4cef08f19f1da0e314745
Showing with 26 additions and 26 deletions.
  1. +26 −26 src/core.js
@@ -714,33 +714,33 @@ jQuery.extend({

// arg is for internal usage only
map: function( elems, callback, arg ) {
var ret = [],
value,
length = elems.length,
// same object detection used in jQuery.each, not full-proof but very speedy.
isObj = length === undefined;

if ( isObj ) {
for ( name in elems ) {
value = callback( elems[ name ], name, arg );
var ret = [],
value,
length = elems.length,
// same object detection used in jQuery.each, not full-proof but very speedy.
isObj = length === undefined;
if ( isObj ) {
for ( name in elems ) {
value = callback( elems[ name ], name, arg );

if ( value != null ) {
ret[ ret.length ] = value;
}
}
} else {
// Go through the array, translating each of the items to their
// new value (or values).
for ( var i = 0; i < length; i++ ) {
value = callback( elems[ i ], i, arg );

if ( value != null ) {
ret[ ret.length ] = value;
}
}
}

return ret.concat.apply( [], ret );
if ( value != null ) {
ret[ ret.length ] = value;
}
}
} else {
// Go through the array, translating each of the items to their
// new value (or values).
for ( var i = 0; i < length; i++ ) {
value = callback( elems[ i ], i, arg );

if ( value != null ) {
ret[ ret.length ] = value;
}
}
}

return ret.concat.apply( [], ret );
},

// A global GUID counter for objects

0 comments on commit 5892800

Please sign in to comment.
You can’t perform that action at this time.