mirror of
https://github.com/jquery/jquery.git
synced 2026-02-02 18:45:13 -05:00
Fix #12107. Let .proxy() curry args without overwriting context. Close gh-866.
This commit is contained in:
committed by
Dave Methvin
parent
cafb542da9
commit
de9ff7cd17
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user