MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / anonFn

Function anonFn

code/songhop/www/lib/angular/angular.js:3415–3424  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

3413var $injectorMinErr = minErr('$injector');
3414
3415function anonFn(fn) {
3416 // For anonymous functions, showing at the very least the function signature can help in
3417 // debugging.
3418 var fnText = fn.toString().replace(STRIP_COMMENTS, ''),
3419 args = fnText.match(FN_ARGS);
3420 if (args) {
3421 return 'function(' + (args[1] || '').replace(/[\s\r\n]+/, ' ') + ')';
3422 }
3423 return 'fn';
3424}
3425
3426function annotate(fn, strictDi, name) {
3427 var $inject,

Callers 1

annotateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected