INNER CODE UNIT · JavaScript
Class
moddio/taro · engine/components/network/net.io/net.io-server/index.js:219
function Class () {
this._data = {};
if (!initializing && this.init) {
this.init.apply(this, arguments);
}
}
// Populate our constructed prototype object
Class.prototype = prototype;
// Enforce the constructor to be what we expect
Class.prototype.constructor = Class;
// And make this class extendable
Class.extend = arguments.callee;
// Add log capability
Class.prototype.log = log;