diff options
author | Phil Hughes <me@iamphill.com> | 2017-08-08 16:25:00 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-08-15 18:09:36 +0300 |
commit | 554afea059446384783f3c68c09ac56afa0e7d49 (patch) | |
tree | 950495ef2a046ccf514dfeab8cacb38b7e817497 /app/assets/javascripts/render_gfm.js | |
parent | 0ec87b3bf0ac27af5f5fedf97d51c8b14b050f50 (diff) |
Fix race condition with dispatcher.js
The dispatcher was trying to create a new instance of a class that is loaded in a file after main.js which would cause the filtered search to not work on issues. This would only happen on the first load when the JS is not cached. If the JS is cached, then everything will be fine.
Diffstat (limited to 'app/assets/javascripts/render_gfm.js')
-rw-r--r-- | app/assets/javascripts/render_gfm.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/assets/javascripts/render_gfm.js b/app/assets/javascripts/render_gfm.js index 2c3a9cacd38..bcdc0fd67b8 100644 --- a/app/assets/javascripts/render_gfm.js +++ b/app/assets/javascripts/render_gfm.js @@ -11,7 +11,5 @@ return this; }; - $(document).on('ready load', function() { - return $('body').renderGFM(); - }); + $(() => $('body').renderGFM()); }).call(window); |