mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-09 23:34:42 +00:00
refactor(angular.bootstrap): rename internal function
This commit is contained in:
parent
3621896e9d
commit
097947fd3b
1 changed files with 3 additions and 3 deletions
|
|
@ -994,7 +994,7 @@ function angularInit(element, bootstrap) {
|
||||||
* @returns {AUTO.$injector} Returns the newly created injector for this app.
|
* @returns {AUTO.$injector} Returns the newly created injector for this app.
|
||||||
*/
|
*/
|
||||||
function bootstrap(element, modules) {
|
function bootstrap(element, modules) {
|
||||||
var resumeBootstrapInternal = function() {
|
var doBootstrap = function() {
|
||||||
element = jqLite(element);
|
element = jqLite(element);
|
||||||
modules = modules || [];
|
modules = modules || [];
|
||||||
modules.unshift(['$provide', function($provide) {
|
modules.unshift(['$provide', function($provide) {
|
||||||
|
|
@ -1017,7 +1017,7 @@ function bootstrap(element, modules) {
|
||||||
var NG_DEFER_BOOTSTRAP = /^NG_DEFER_BOOTSTRAP!/;
|
var NG_DEFER_BOOTSTRAP = /^NG_DEFER_BOOTSTRAP!/;
|
||||||
|
|
||||||
if (window && !NG_DEFER_BOOTSTRAP.test(window.name)) {
|
if (window && !NG_DEFER_BOOTSTRAP.test(window.name)) {
|
||||||
return resumeBootstrapInternal();
|
return doBootstrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
window.name = window.name.replace(NG_DEFER_BOOTSTRAP, '');
|
window.name = window.name.replace(NG_DEFER_BOOTSTRAP, '');
|
||||||
|
|
@ -1025,7 +1025,7 @@ function bootstrap(element, modules) {
|
||||||
forEach(extraModules, function(module) {
|
forEach(extraModules, function(module) {
|
||||||
modules.push(module);
|
modules.push(module);
|
||||||
});
|
});
|
||||||
resumeBootstrapInternal();
|
doBootstrap();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue