> Yes, But the question was from an array of controls: When you implement on Element, you automatically implement on Elements arrays. There is no need to implement on the generic Array.
Element.implement({
removeClassesExcept: function(klass) {
...
}
});
$('remove').addEvent('click', function() {
$$('li').removeClassesExcept('base_class'); // works
});
-- S.
