Comment Comment by own3r Nice idea! Here's an alternative which uses ES2016 decorators https://github.com/mgechev/aspect.js parent own3r 10 years ago