X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fjquery%2Fjquery.js;h=4c5941b20afa1762c4894e19244b58a47c11f388;hb=0477a6e99e95ae93da983e7fc2a30bf16ea8ca77;hp=7c0562aaf5a93bb8074173ad459e530f2a5dd42c;hpb=fc3e180465a88558321b6550ac4692d7cc4b281f;p=jquery.git diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 7c0562a..4c5941b 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -1434,7 +1434,7 @@ jQuery.extend({ fn.call( obj[i], i, obj[i] ); else for ( var i = 0, ol = obj.length, val = obj[0]; - i < ol && fn.call(val,i,val) !== false; val = obj[++i] ); + i < ol && fn.call(val,i,val) !== false; val = obj[++i] ){} } return obj; @@ -1857,7 +1857,7 @@ jQuery.extend({ // If a string is passed in for the function, make a function // for it (a handy shortcut) if ( typeof fn == "string" ) - fn = eval("function(a,i){return " + fn + "}"); + fn = eval("false||function(a,i){return " + fn + "}"); var result = []; @@ -1911,7 +1911,7 @@ jQuery.extend({ // If a string is passed in for the function, make a function // for it (a handy shortcut) if ( typeof fn == "string" ) - fn = eval("function(a){return " + fn + "}"); + fn = eval("false||function(a){return " + fn + "}"); var result = []; @@ -2422,6 +2422,7 @@ jQuery.each( { * @param String str The string that will be contained within the text of an element. * @cat DOM/Traversing */ +// DEPRECATED jQuery.each( [ "eq", "lt", "gt", "contains" ], function(i,n){ jQuery.fn[ n ] = function(num,fn) { return this.filter( ":" + n + "(" + num + ")", fn );