> And similarly... for IE (only), I often do "unload" cleanup functions > (to remove DOM object references, closures, etc)... but for all other > browsers, that's unncessary waste. Without a way to definitively, > directly test for IE, how will my code know if it needs to do these > cleanups or not... a "supportsProperMemoryManagement()"?
Well, it's likely that your code wouldn't know. In the case of jQuery we do exactly this (have an onunload cleanup function) and run it in every browser equally (IE has the most notorious leaks, but it's good to cleanup in every browser). The cost of cleaning up the events use to be higher, but we've reduced the overhead significantly in 1.3. --John --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---
