MCPcopy Create free account
hub / github.com/Lucifier129/react-lite / bindContext

Function bindContext

src/createClass.js:50–58  ·  view source on GitHub ↗
(obj, source)

Source from the content-addressed store, hash-verified

48}
49
50function bindContext(obj, source) {
51 for (let key in source) {
52 if (source.hasOwnProperty(key)) {
53 if (_.isFn(source[key])) {
54 obj[key] = source[key].bind(obj)
55 }
56 }
57 }
58}
59
60let Facade = function() {}
61Facade.prototype = Component.prototype

Callers 1

KlassFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected