@emartech/faye-redis-sharded
Version:
Redis backend engine for Faye with support for sharding
20 lines (15 loc) • 424 B
JavaScript
Faye.Class = function(parent, methods) {
if (typeof parent !== 'function') {
methods = parent;
parent = Object;
}
var klass = function() {
if (!this.initialize) return this;
return this.initialize.apply(this, arguments) || this;
};
var bridge = function() {};
bridge.prototype = parent.prototype;
klass.prototype = new bridge();
Faye.extend(klass.prototype, methods);
return klass;
};