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

Function anonFn

test/angular/1.3/angular.js:3464–3473  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

3462var $injectorMinErr = minErr('$injector');
3463
3464function anonFn(fn) {
3465 // For anonymous functions, showing at the very least the function signature can help in
3466 // debugging.
3467 var fnText = fn.toString().replace(STRIP_COMMENTS, ''),
3468 args = fnText.match(FN_ARGS);
3469 if (args) {
3470 return 'function(' + (args[1] || '').replace(/[\s\r\n]+/, ' ') + ')';
3471 }
3472 return 'fn';
3473}
3474
3475function annotate(fn, strictDi, name) {
3476 var $inject,

Callers 1

annotateFunction · 0.70

Calls 1

matchMethod · 0.80

Tested by

no test coverage detected