MCPcopy Create free account
hub / github.com/corbanbrook/dsp.js / wrapFunction

Function wrapFunction

examples/js/processing.js:8807–8813  ·  view source on GitHub ↗
(newContext, name)

Source from the content-addressed store, hash-verified

8805 }
8806 function SetPixelContextWrapper() {
8807 function wrapFunction(newContext, name) {
8808 function wrapper() {
8809 resetContext();
8810 curContext[name].apply(curContext, arguments);
8811 }
8812 newContext[name] = wrapper;
8813 }
8814 function wrapProperty(newContext, name) {
8815 function getter() {
8816 resetContext();

Callers 1

SetPixelContextWrapperFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected