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

Function createChainedFunction

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

2661 * @private
2662 */
2663 function createChainedFunction(one, two) {
2664 return function chainedFunction() {
2665 one.apply(this, arguments);
2666 two.apply(this, arguments);
2667 };
2668 }
2669
2670 /**
2671 * Binds a method to the component.

Callers 1

mixSpecIntoComponentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected