How do I extend in my class a Dom element, in mootools

Posted by Itay Moav on Stack Overflow See other posts from Stack Overflow or by Itay Moav
Published on 2010-03-22T18:27:17Z Indexed on 2010/03/22 18:31 UTC
Read the original article Hit count: 287

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.

© Stack Overflow or respective owner

Related posts about mootools

Related posts about JavaScript