Added in jQuery.isFunction().

This commit is contained in:
John Resig 2007-01-14 06:22:20 +00:00
parent 2bd21fe3b3
commit ed5bda3020
5 changed files with 29 additions and 25 deletions

View file

@ -172,7 +172,7 @@ jQuery.extend({
// If the token match was found
if ( m ) {
// Map it against the token's handler
r = ret = jQuery.map( ret, jQuery.token[i+1].constructor == Function ?
r = ret = jQuery.map( ret, jQuery.isFunction( jQuery.token[i+1] ) ?
jQuery.token[i+1] :
function(a){ return eval(jQuery.token[i+1]); });