Bug Tracker

Opened 12 years ago

Closed 12 years ago

#8887 closed bug (invalid)

$.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:


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 );

Change History (1)

comment:1 Changed 12 years ago by ajpiano

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.

Note: See TracTickets for help on using tickets.