Added in jQuery.isFunction().
This commit is contained in:
parent
2bd21fe3b3
commit
ed5bda3020
5 changed files with 29 additions and 25 deletions
|
@ -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]); });
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue