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

Function createChainedFunction

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

4944 * @private
4945 */
4946function createChainedFunction(one, two) {
4947 return function chainedFunction() {
4948 one.apply(this, arguments);
4949 two.apply(this, arguments);
4950 };
4951}
4952
4953/**
4954 * Binds a method to the component.

Callers 1

mixSpecIntoComponentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…