Skip to content
Permalink
Browse files

Perf. improvement based on fearphage's suggestion (direct vs call vs …

…apply).
  • Loading branch information...
gf3 committed Dec 19, 2010
1 parent 1ebb5ab commit 6bc9fc7c10a6dd2c8c7132307e63323a1f59d35f
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/core.js
@@ -754,7 +754,11 @@ jQuery.extend({
if ( jQuery.support.nativeBind ) {
// Native bind
args = slice.call( arguments, 1 );
proxy = Function.prototype.bind.apply( fn, args );
if ( args.length ) {
proxy = Function.prototype.bind.apply( fn, args );
} else {
proxy = fn.bind( context );
}
} else {
// Simulated bind
args = slice.call( arguments, 2 );

0 comments on commit 6bc9fc7

Please sign in to comment.
You can’t perform that action at this time.