$.proxy

$.proxy

Hi,

as stated here http://api.jquery.com/jQuery.proxy/
    1. additionalArguments
    2. Type: Anything
    3. Any number of arguments to be passed to the function referenced in the function argument.

I understand ... the arguments are added after (additional) the already existing ones, i.e.
  1. var fn = $.proxy(function(a, b, c, extra) {
  2.       alert(a + ' ' + b + ' ' + c + ' ' + extra);
  3. }, this, 'x');
  4. fn('a', 'b', 'c');

I would expect to see the alert box with 'a b c x' inside, but I get 'x a b c' because the additionalArguments are added before the ones used to call the function in the first place.

This can be seen in the source code (where `args` are the arguments {2,} as passed to the .proxy method, so they are passed first...):
  1. return fn.apply( context || this, args.concat( core_slice.call( arguments ) ) );

Is this the expected behavior or a bug? cause it's not really clear
in the docs what is the resulting argument order.