Skip to main content

Bug Tracker

Side navigation

#8887 closed bug (invalid)

Opened April 16, 2011 12:17AM UTC

Closed April 16, 2011 01:32AM UTC

$.proxy does not feature detect for Function.prototype.bind

Reported by: Raynos Owned by:
Priority: undecided Milestone: 1.next
Component: unfiled Version: 1.5.2
Keywords: Cc:
Blocked by: Blocking:
Description
proxy = function() {
    return fn.apply( thisObject || this, arguments );
};

Taken from http://code.jquery.com/jquery-latest.js. If the ES5 Function.prototype.bind is available it should use that native function instead.

 
if (fn.bind) {
    proxy = fn.bind( thisObject || this ) 
} else {
    proxy = function() {
        return fn.apply( thisObject || this, arguments );
    };
}
Attachments (0)
Change History (1)

Changed April 16, 2011 01:32AM UTC by ajpiano comment:1

resolution: → invalid
status: newclosed

Thanks for your time and interest in helping out! Unfortunately, the jquery-latest file is a link to the latest stable release of jQuery (1.5.2) not the 1.6 beta1. The "edge" version can be found at http://code.jquery.com/jquery-git.js, and it most certainly checks for Function.prototype.bind.