MCPcopy
hub / github.com/angular-ui/ui-router / anonFn

Function anonFn

test/angular/1.4/angular.js:3800–3809  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

3798var $injectorMinErr = minErr('$injector');
3799
3800function anonFn(fn) {
3801 // For anonymous functions, showing at the very least the function signature can help in
3802 // debugging.
3803 var fnText = fn.toString().replace(STRIP_COMMENTS, ''),
3804 args = fnText.match(FN_ARGS);
3805 if (args) {
3806 return 'function(' + (args[1] || '').replace(/[\s\r\n]+/, ' ') + ')';
3807 }
3808 return 'fn';
3809}
3810
3811function annotate(fn, strictDi, name) {
3812 var $inject,

Callers 1

annotateFunction · 0.70

Calls 1

matchMethod · 0.80

Tested by

no test coverage detected