2015-06-08 20:21:19 +02:00
|
|
|
"use strict";
|
|
|
|
|
2014-05-08 11:48:56 +02:00
|
|
|
/* Class utilities */
|
|
|
|
var classes = {
|
|
|
|
subclass: function(child, parent) {
|
|
|
|
function ctor() { this.constructor = child; }
|
|
|
|
ctor.prototype = parent.prototype;
|
|
|
|
child.prototype = new ctor();
|
2015-08-21 15:40:28 +02:00
|
|
|
}
|
2014-05-08 11:48:56 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = classes;
|