MCPcopy Create free account
hub / github.com/CloudBoost/cloudboost / mixin

Function mixin

sdk/src/CloudSocketClientLib.js:2705–2710  ·  view source on GitHub ↗

* Mixin the emitter properties. * * @param {Object} obj * @return {Object} * @api private

(obj)

Source from the content-addressed store, hash-verified

2703 */
2704
2705 function mixin(obj) {
2706 for (var key in Emitter.prototype) {
2707 obj[key] = Emitter.prototype[key];
2708 }
2709 return obj;
2710 }
2711
2712 /**
2713 * Listen on the given `event` with `fn`.

Callers 1

EmitterFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected