Closed mrzafod closed 10 years ago
I do want to improve the documentation. The article that explains all aspects of the DOM.extend
function is on-the-way so hopefully it will be published next week. Be patient and check smashingmagazine (not sure when I will translate it to Russian), it will address all your questions.
Unfortunately at present there is no destructor
support, so you should rely on a different callback. But yeah, I'm already thinking how to implement such method. It will definitely become a part of APIs in future (not sure when).
Alright, the article was published: http://coding.smashingmagazine.com/2014/02/05/introducing-live-extensions-better-dom-javascript/. I also updated live extensions wiki which now contains deeper information on the topic.
Are you going on improve an API documentation? It is clear in common but I haven't fully understand a
DOM.extend
. So,selector
is fully clear, but what iscondition
andmixins
. And I noticed aconstructor
it seems like triggered when node is inserted into the DOM. Isnt it? And can I apply adestructor
there to rollback states of some elements for example?