MCPcopy Create free account
hub / github.com/angular-ui/ui-router / anonFn

Function anonFn

test/angular/1.5/angular.js:3982–3990  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

3980}
3981
3982function anonFn(fn) {
3983 // For anonymous functions, showing at the very least the function signature can help in
3984 // debugging.
3985 var args = extractArgs(fn);
3986 if (args) {
3987 return 'function(' + (args[1] || '').replace(/[\s\r\n]+/, ' ') + ')';
3988 }
3989 return 'fn';
3990}
3991
3992function annotate(fn, strictDi, name) {
3993 var $inject,

Callers 1

annotateFunction · 0.70

Calls 1

extractArgsFunction · 0.70

Tested by

no test coverage detected