Hello,
I want to overwrite the default-behaviour of the prototype-function
"addClassName". How can I achieve this? A few weeks ago I saw a piece
of code that overwrites the "wrap"-function - just take a look here:
http://pastie.caboo.se/137552
I tried the same with "addClassName", but nothing happend:
Object.extend(Array.prototype, {
addClassName: function(element, className) {
alert('test');
}
});
Thanks for any help!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---