I have a class creating elements. I.E.
var Button = new Class({
initialize : function(){
this.button = new Element('div', {html : 'my button'});
return this.button;
},
setContent : function(content){
this.button.set('html', content);
}
});
So i can create an element in my DOM like this :
var myButton = new Button().inject(document.body);
But how can I make
myButton.setContent('some new content');
?
Thank you
