uhop / dcl

Elegant minimalistic implementation of OOP with mixins + AOP in JavaScript for node.js and browsers.
http://www.dcljs.org/
Other
76 stars 10 forks source link

advise.after() (etc.) returned object missing destroy() method #25

Closed wkeese closed 6 years ago

wkeese commented 6 years ago

DCL v1's advise.after() etc. methods returned an object with a destroy() method, but DCL v2's methods return an object with just unadvise() and remove().

According to http://www.dcljs.org/2.x/docs/advise_js/after/ there should still be a destroy() method in v2. Additionally, it would be convenient to use with Cleanable#pushCleanup().