Web authors usually know which version they code against, so checking
if the namespace/object exist looks fine to me (why is it dirty any
way?)

Just remember that typeof null also returns 'object', so you could may
better check for:

<script type="text/javascript">
        function swfobjectVersionTest() {
                if (deconcept) { return 1; }
                else if (swfobject) { return 2; }
                else { return 0; }
        }
        var v = swfobjectVersionTest();
        alert(v);
</script>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SWFObject" 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/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to