mhevery/angular.js — comment on commit 83588d071f261307cac1b87f36fae04576273faf
File:  line 0
By mhevery:

Because angularPublic is not loaded in the tests. And so we don't have access to it. By turning it into a function it does not get executed until the angularPublic and the tests are free to run it as they see fit.