MCPcopy Create free account
hub / github.com/AlloyTeam/PhyTouch / bindAutoBindMethods

Function bindAutoBindMethods

transformjs/react/example/index.js:2714–2721  ·  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

2712 * @param {object} component Component whose method is going to be bound.
2713 */
2714 function bindAutoBindMethods(component) {
2715 var pairs = component.__reactAutoBindPairs;
2716 for (var i = 0; i < pairs.length; i += 2) {
2717 var autoBindKey = pairs[i];
2718 var method = pairs[i + 1];
2719 component[autoBindKey] = bindAutoBindMethod(component, method);
2720 }
2721 }
2722
2723 /**
2724 * Add more to the ReactClass base class. These are all legacy features and

Callers 1

index.jsFile · 0.85

Calls 1

bindAutoBindMethodFunction · 0.85

Tested by

no test coverage detected