refactor(angular.bootstrap): rename internal function

This commit is contained in:
Pete Bacon Darwin 2013-06-20 15:22:35 +01:00
parent ae8deb1246
commit ff57695855

View file

@ -985,7 +985,7 @@ function angularInit(element, bootstrap) {
* @returns {AUTO.$injector} Returns the newly created injector for this app.
*/
function bootstrap(element, modules) {
var resumeBootstrapInternal = function() {
var doBootstrap = function() {
element = jqLite(element);
modules = modules || [];
modules.unshift(['$provide', function($provide) {
@ -1007,7 +1007,7 @@ function bootstrap(element, modules) {
var NG_DEFER_BOOTSTRAP = /^NG_DEFER_BOOTSTRAP!/;
if (window && !NG_DEFER_BOOTSTRAP.test(window.name)) {
return resumeBootstrapInternal();
return doBootstrap();
}
window.name = window.name.replace(NG_DEFER_BOOTSTRAP, '');
@ -1015,7 +1015,7 @@ function bootstrap(element, modules) {
forEach(extraModules, function(module) {
modules.push(module);
});
resumeBootstrapInternal();
doBootstrap();
};
}