Skip to main content

Bug Tracker

Side navigation

#6253 closed bug (invalid)

Opened March 10, 2010 02:39AM UTC

Closed November 19, 2010 03:55AM UTC

$.proxy incorrectly passes $.proxy arguments to proxied function

Reported by: originofstorms Owned by:
Priority: undecided Milestone:
Component: core Version: 1.4.2
Keywords: proxy Cc:
Blocked by: Blocking:
Description

I believe theres a problem with $.proxy. If you call

  $.proxy(object, "method")()

object.method is passed the arguments passed to $.proxy... effectively

  object.method(object, "method");

A quick look at the $.proxy source reveals the following:

  proxy: function( fn, proxy, thisObject ) {
    // ... elided ...
    proxy = function() {
      return fn.apply( thisObject || this, arguments );
    };
    // ... elided ...
    return proxy;
  }

Is there a reason for arguments to be passed on through?

Oddly, this causes problems on FF 3.6.2, but not Chromium 5.0.344.0.

Attachments (0)
Change History (2)

Changed November 12, 2010 02:40AM UTC by snover comment:1

milestone: 1.4.3

Resetting milestone to future.

Changed November 19, 2010 03:55AM UTC by snover comment:2

priority: → undecided
resolution: → invalid
status: newclosed

Yes, this is intended.