Skip to content

Instantly share code, notes, and snippets.

@jessebeach
Created June 28, 2012 00:33
Show Gist options
  • Save jessebeach/3007875 to your computer and use it in GitHub Desktop.
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.
function fakeProxy(fn, context) {
var args = Array.prototype.slice.call(arguments, 2);
return function () {
fn.apply(context, args);
}
}
@jessebeach
Copy link
Author

Because $.proxy(fn, context, option) won't work in jQuery 1.4.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment