How do I extend in my class a Dom element, in mootools
- by Itay Moav
I want to create a Class, say MyDiv, which inherits from the original DOM DIV element.
Later in my code I would like to use it like that:
$('a-container').adopt(new MyDiv('my own set of params'));
I am missing the exact syntax to do it.