Sha256: 4649a7dd3093cc05c538907c73a46c0bf9c01b5d4b4bc2b224b416391049f513
Contents?: true
Size: 433 Bytes
Versions: 2
Compression:
Stored size: 433 Bytes
Contents
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; };
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
faye-0.1.0 | client/util/class.js |
faye-0.1.1 | client/util/class.js |