mhevery/angular.js — comment on commit 31de91754c1676b8a8cf7eaad59ffc89ca6d8bd7
File:  line 0
By IgorMinar:

I don't like that $injector is a function that does two *very different* things depending on what you happen to pass it.

I would much more prefer to see injector as an object that has two (or three) methods: `lookup`, `invoke` (, and `infer`).

A year ago we had an injector that looked very similar to this. It was a function that did many different things depending on args. Then we split it up into injector fn and invoke fn hanging off of the injector fn. Now you want to go back to the old version?

-1