Hey,
i would like to override the setStyle method, so that i don't need to
touch the prototype.js file and still call the method like this

$('some_element').setStyle({...})

i tried sth like. this but it (obviously) didn't work:

var MyPrototype = Class.create(Element, {
  setStyle: function(element, styles) {
    alert('cs')
  }
});

thx for tipps
kalle


--~--~---------~--~----~------------~-------~--~----~
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