X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fjquery%2Fjquery.js;fp=src%2Fjquery%2Fjquery.js;h=8180a4ea217d0fa4076091ec527abf3c1fa7c608;hb=079d651e10bc19a28c49945617e842415dc41981;hp=8988c5ee107617620e249b4cd36e04cb914b08ee;hpb=5c19701a89c4b56e130a213759eb035fb0c302dc;p=jquery.git diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 8988c5e..8180a4e 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -1189,6 +1189,12 @@ jQuery.fn = jQuery.prototype = { slice: function() { return this.pushStack( Array.prototype.slice.apply( this, arguments ) ); }, + + map: function(fn){ + return this.pushStack(jQuery.map( this, function(elem,i){ + return fn.call( elem, i, elem ); + })); + }, /** * @private