MCPcopy Create free account
hub / github.com/TruthHun/BookStack / proxy

Function proxy

static/cropper/2.3.4/cropper.js:129–135  ·  view source on GitHub ↗
(fn, context)

Source from the content-addressed store, hash-verified

127
128 // Custom proxy to avoid jQuery's guid
129 function proxy(fn, context) {
130 var args = toArray(arguments, 2);
131
132 return function () {
133 return fn.apply(context, args.concat(toArray(arguments)));
134 };
135 }
136
137 function isCrossOriginURL(url) {
138 var parts = url.match(/^(https?:)\/\/([^\:\/\?#]+):?(\d*)/i);

Callers 1

cropper.jsFile · 0.70

Calls 1

toArrayFunction · 0.70

Tested by

no test coverage detected