4 ms·
Naming the anonymous functions, is actually suggested as good practice somewhere in the Angular.js docs. I came across that a couple of weeks ago.
by pyre 12y ago
Naming the anonymous functions, is actually suggested as good practice somewhere in the Angular.js docs. I came across that a couple of weeks ago.
- whiskypeters 12y agoNaming anonymous functions (and anonymous function expressions) provides useful context while tracing error stacks
- pyre 12y agoThis was exactly the reason it was suggested in the Angular.js docs.