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

Function anonFn

test/angular/1.7/angular.js:4282–4290  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

4280}
4281
4282function anonFn(fn) {
4283 // For anonymous functions, showing at the very least the function signature can help in
4284 // debugging.
4285 var args = extractArgs(fn);
4286 if (args) {
4287 return 'function(' + (args[1] || '').replace(/[\s\r\n]+/, ' ') + ')';
4288 }
4289 return 'fn';
4290}
4291
4292function annotate(fn, strictDi, name) {
4293 var $inject,

Callers 1

annotateFunction · 0.70

Calls 1

extractArgsFunction · 0.70

Tested by

no test coverage detected