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

Function bindAutoBindMethods

examples/simple/react.js:4948–4955  ·  view source on GitHub ↗

* Binds all auto-bound methods in a component. * * @param {object} component Component whose method is going to be bound.

(component)

Source from the content-addressed store, hash-verified

4946 * @param {object} component Component whose method is going to be bound.
4947 */
4948function bindAutoBindMethods(component) {
4949 for (var autoBindKey in component.__reactAutoBindMap) {
4950 if (component.__reactAutoBindMap.hasOwnProperty(autoBindKey)) {
4951 var method = component.__reactAutoBindMap[autoBindKey];
4952 component[autoBindKey] = bindAutoBindMethod(component, method);
4953 }
4954 }
4955}
4956
4957/**
4958 * Add more to the ReactClass base class. These are all legacy features and

Callers 1

ConstructorFunction · 0.85

Calls 1

bindAutoBindMethodFunction · 0.85

Tested by

no test coverage detected