Created
June 28, 2012 00:33
-
-
Save jessebeach/3007875 to your computer and use it in GitHub Desktop.
A fake proxy because jQuery 1.4.4 can't handle an overloaded proxy function.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fakeProxy(fn, context) { | |
var args = Array.prototype.slice.call(arguments, 2); | |
return function () { | |
fn.apply(context, args); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Because $.proxy(fn, context, option) won't work in jQuery 1.4.4