@Mislav - Yes I will try it with the selector.html (when I have time
to find it).

For now I was able to recreate the problem here:

<html>
<head>
<title>Selector Test</title>

<script type="text/javascript" src="prototype.js"></script>

<script>

        Element.addMethods('DIV', {
                customMethod : function(element){
                        element = $(element);
                        alert(element.className);
                        return element;
                }
        });

        Event.observe(window, 'load', function(){
                var elements = $$('.testClass');
                for(var i=0; element=elements[i]; i++){
                        alert(typeof(element.customMethod)); //alerts function 
in all
browsers but Opera
                }
        });
</script>

</head>
<body>

<div class="testClass"></div>
<div class="testClass"></div>
<div class="testClass"></div>

</body>
</html>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to