Fix #12107. Let .proxy() curry args without overwriting context. Close gh-866.

This commit is contained in:
Marcel Greter
2012-07-19 17:54:14 +02:00
committed by Dave Methvin
parent cafb542da9
commit de9ff7cd17
2 changed files with 10 additions and 2 deletions

View File

@@ -765,7 +765,7 @@ jQuery.extend({
// Simulated bind
args = core_slice.call( arguments, 2 );
proxy = function() {
return fn.apply( context, args.concat( core_slice.call( arguments ) ) );
return fn.apply( context || this, args.concat( core_slice.call( arguments ) ) );
};
// Set the guid of unique handler to the same of original handler, so it can be removed