Is replacing/proxying jQuery functions a bad idea?
Is there any reason for not doing something like this:
- (function() {
- var original=jQuery.fn.FUNCTION_TO_REPLACE;
- jQuery.fn.FUNCTION_TO_REPLACE=function() {
- var args=arguments;
- // Change some args
- return original.apply(this, args);
- };
- }());
I already tried somthing like this to globally change the speed of all jQuery animations and it
seems to work very well...
(Maybe I choose the wrong forum for this question the last time... I hope so... ;)