X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fcore.js;h=4949d6bf4e2a9de52eb0ca2683125e9be9433861;hb=2b481b93cfca62f95aa7005e7db651456fa08e65;hp=e2d3b60f75820f0a61cb6118625f0801e3314db8;hpb=bbd933cbfe6d31a749cb336d7a84155ccfab247f;p=jquery.git diff --git a/src/core.js b/src/core.js index e2d3b60..4949d6b 100644 --- a/src/core.js +++ b/src/core.js @@ -484,13 +484,14 @@ jQuery.extend({ return ret; }, - map: function( elems, callback ) { + // arg is for internal usage only + map: function( elems, callback, arg ) { var ret = [], value; // Go through the array, translating each of the items to their // new value (or values). for ( var i = 0, length = elems.length; i < length; i++ ) { - value = callback( elems[ i ], i ); + value = callback( elems[ i ], i, arg ); if ( value != null ) { ret[ ret.length ] = value;