MCPcopy Create free account
hub / github.com/Lobos/react-ui / bindAutoBindMethods

Function bindAutoBindMethods

docs/lib/react.js:4997–5004  ·  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

4995 * @param {object} component Component whose method is going to be bound.
4996 */
4997function bindAutoBindMethods(component) {
4998 var pairs = component.__reactAutoBindPairs;
4999 for (var i = 0; i < pairs.length; i += 2) {
5000 var autoBindKey = pairs[i];
5001 var method = pairs[i + 1];
5002 component[autoBindKey] = bindAutoBindMethod(component, method);
5003 }
5004}
5005
5006/**
5007 * 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…