// If the first argument is the function,
// set filterFn to the first argument's value and ignore the second argument.
- if ( $.isFunction( limit ) ) {
+ if ( typeof limit === 'function' ) {
filterFn = limit;
limit = undefined;
// Either way, verify it is a function so we don't have to call
// isFunction again after this.
- } else if ( !filterFn || !$.isFunction( filterFn ) ) {
+ } else if ( !filterFn || typeof filterFn !== 'function' ) {
filterFn = undefined;
}