Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
f0fe736e
Commit
f0fe736e
authored
Feb 01, 2018
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ensure dispatcher is run before other DOMContentLoaded handlers
parent
053c3d0e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
app/assets/javascripts/dispatcher.js
app/assets/javascripts/dispatcher.js
+6
-6
app/assets/javascripts/main.js
app/assets/javascripts/main.js
+3
-1
No files found.
app/assets/javascripts/dispatcher.js
View file @
f0fe736e
...
@@ -12,9 +12,9 @@ import ShortcutsIssuable from './shortcuts_issuable';
...
@@ -12,9 +12,9 @@ import ShortcutsIssuable from './shortcuts_issuable';
import
Diff
from
'
./diff
'
;
import
Diff
from
'
./diff
'
;
import
SearchAutocomplete
from
'
./search_autocomplete
'
;
import
SearchAutocomplete
from
'
./search_autocomplete
'
;
(
function
()
{
var
Dispatcher
;
var
Dispatcher
;
(
function
()
{
Dispatcher
=
(
function
()
{
Dispatcher
=
(
function
()
{
function
Dispatcher
()
{
function
Dispatcher
()
{
this
.
initSearch
();
this
.
initSearch
();
...
@@ -629,8 +629,8 @@ import SearchAutocomplete from './search_autocomplete';
...
@@ -629,8 +629,8 @@ import SearchAutocomplete from './search_autocomplete';
return
Dispatcher
;
return
Dispatcher
;
})();
})();
})();
$
(
window
).
on
(
'
load
'
,
function
()
{
export
default
function
initDispatcher
()
{
new
Dispatcher
();
return
new
Dispatcher
();
});
}
}).
call
(
window
);
app/assets/javascripts/main.js
View file @
f0fe736e
...
@@ -33,7 +33,7 @@ import './projects_dropdown';
...
@@ -33,7 +33,7 @@ import './projects_dropdown';
import
'
./render_gfm
'
;
import
'
./render_gfm
'
;
import
initBreadcrumbs
from
'
./breadcrumb
'
;
import
initBreadcrumbs
from
'
./breadcrumb
'
;
import
'
./dispatcher
'
;
import
initDispatcher
from
'
./dispatcher
'
;
// eslint-disable-next-line global-require, import/no-commonjs
// eslint-disable-next-line global-require, import/no-commonjs
if
(
process
.
env
.
NODE_ENV
!==
'
production
'
)
require
(
'
./test_utils/
'
);
if
(
process
.
env
.
NODE_ENV
!==
'
production
'
)
require
(
'
./test_utils/
'
);
...
@@ -265,4 +265,6 @@ $(() => {
...
@@ -265,4 +265,6 @@ $(() => {
removeFlashClickListener
(
flashEl
);
removeFlashClickListener
(
flashEl
);
});
});
}
}
initDispatcher
();
});
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment