This is an jQuery 1.3.2 version of mine, made to work in the presence of Object.prototype (ab)use.
If you are one of these unfortunate souls, please let me know what do you think? It seems to work for me with (for example) this :
NOTE 1: absolutely no optimization has been done in the implementation
of the idea. Feel free to post your optimised versions.
NOTE 2 : If you are in control of the management of the modernisation of the legacy site, you can allways reset Object.prototype , like this :
for (var j in Object.prototype) delete Object.prototype[j] ;
If your legacy code still works after this, you probably do not need this safe and slow version.