MCPcopy Index your code
hub / github.com/RubyLouvre/anu / bindAutoBindMethods

Function bindAutoBindMethods

test/react.js:1039–1046  ·  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

1037 * @param {object} component Component whose method is going to be bound.
1038 */
1039function bindAutoBindMethods(component) {
1040 var pairs = component.__reactAutoBindPairs;
1041 for (var i = 0; i < pairs.length; i += 2) {
1042 var autoBindKey = pairs[i];
1043 var method = pairs[i + 1];
1044 component[autoBindKey] = bindAutoBindMethod(component, method);
1045 }
1046}
1047
1048/**
1049 * Add more to the ReactClass base class. These are all legacy features and

Callers 1

react.jsFile · 0.85

Calls 1

bindAutoBindMethodFunction · 0.85

Tested by

no test coverage detected