I'm not sure if it's necessary, but I feel It'd be nice that we can pass an object to $.map(), so that jquery will iterate over it's properties and modifies values by calling the callback function:
var obj = { a: function() { alert(1) }, b: function() { alert(2) } }; $.map( obj, function( value, key ) { return function() { // Call old function value(); // Do something else; }; }) If the idea is redundant because of my lack of knowledge, please let me know how to do it natively, thanks. ( If you are going to suggest " for( in ) ", I think it doesn't have the benefit of scoping ) -- You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-...@googlegroups.com. To unsubscribe from this group, send email to jquery-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en.