Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit 0e40d1c

Browse files
author
Erin Altenhof-Long
committed
style(): order functions in logical order
1 parent 2aafaf5 commit 0e40d1c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

hint.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,10 @@ else {
3535
window.name = 'NG_DEFER_BOOTSTRAP!';
3636
}
3737

38-
function maybeBootstrap() {
38+
// determine which modules to load and resume bootstrap
39+
document.addEventListener('DOMContentLoaded', maybeBootstrap());
3940

41+
function maybeBootstrap() {
4042
// we don't know if angular is loaded
4143
if (!angular.resumeBootstrap) {
4244
return setTimeout(maybeBootstrap, 1);
@@ -59,10 +61,6 @@ function loadModules() {
5961
return modules;
6062
};
6163

62-
// determine which modules to load and resume bootstrap
63-
document.addEventListener('DOMContentLoaded', maybeBootstrap());
64-
65-
6664
function excludeModules(modulesToExclude) {
6765
modulesToExclude = modulesToExclude.map(hintModuleName);
6866
return allModules.filter(function(module) {

0 commit comments

Comments
 (0)