classes.js 248 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 "use strict"; /* Class utilities */ var classes = { subclass: function(child, parent) { function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); } }; module.exports = classes;