MCPcopy Create free account
hub / github.com/reactjs/react-rails / createChainedFunction

Function createChainedFunction

lib/assets/react-source/development/react.js:29872–29877  ·  view source on GitHub ↗

* Creates a function that invokes two functions and ignores their return vales. * * @param {function} one Function to invoke first. * @param {function} two Function to invoke second. * @return {function} Function that invokes the two argument functions. * @private

(one, two)

Source from the content-addressed store, hash-verified

29870 * @private
29871 */
29872 function createChainedFunction(one, two) {
29873 return function chainedFunction() {
29874 one.apply(this, arguments);
29875 two.apply(this, arguments);
29876 };
29877 }
29878
29879 /**
29880 * Binds a method to the component.

Callers 1

mixSpecIntoComponentFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected