chemerisuk / better-dom

Live extension playground
http://chemerisuk.github.io/better-dom/
MIT License
545 stars 35 forks source link

Better API documentation #9

Closed mrzafod closed 10 years ago

mrzafod commented 10 years ago

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 is condition and mixins. And I noticed a constructor it seems like triggered when node is inserted into the DOM. Isnt it? And can I apply a destructor there to rollback states of some elements for example?

chemerisuk commented 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).

chemerisuk commented 10 years ago

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.