The latest trunk version of Prototype also doesn't overide the
document.getElementsByClassName() if it already exists...
They could piggy back it with:
//if they can override it...
if(document.getElementsByClassName
(function(){
var old = document.getElementsByClassName;
document.getElementsByClassName = function(){
return $(old.apply(null, arguments));
};
})();
}
//or you could fix it behaviorally
var foo = $A( document.getElementsByClassName('.foobar') );
//or you could use
var foo = $$('.foobar'); // i dont think it uses
document.getElementsByClassName()
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---