rem: var r = [ result[0] ]; 
add: var r = result.length ? [ result[0] ] : []; 
context: 	map: function(elems, fn) {		// If a string is passed in for the function, make a function		// for it (a handy shortcut)		if ( typeof fn == "string" )			fn = new Function("a","return " + fn);		var result = [], r = [];		// Go through the array, translating each of the items to their		// new value (or values).		for ( var i = 0, el = elems.length; i < el; i++ ) {			var val = fn(elems[i],i);			if ( val !== null && val != undefined ) {				if ( val.constructor != Array ) val = [val];				result = result.concat( val );			}		}		var r = [ result[0] ];		check: for ( var i = 1, rl = result.length; i < rl; i++ ) {			for ( var j = 0; j < i; j++ )				if ( result[i] == r[j] )					continue check;			r.push( result[i] );		}		return r;	}
meta: 1471	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1471/33662cd713c28b2db0adccec170ffe93b35f098a/jquery.js/buggy/src/jquery/jquery.js