diff options
author | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-05-25 07:12:36 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-05-25 07:12:36 +0000 |
commit | 710e35378a55d1ff0cdb164f844a9e152c04b3df (patch) | |
tree | 8e263cc474d5d44096a12bd3188b2572b75da68f /app | |
parent | ec2130bea8d2ee1b327b0c99b27768cd13bd6cb8 (diff) | |
download | gitlab-ce-710e35378a55d1ff0cdb164f844a9e152c04b3df.tar.gz |
Use non-global jQuery reference within raven bundle
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/raven/raven_config.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/raven/raven_config.js b/app/assets/javascripts/raven/raven_config.js index da3fb7a6744..ae54fa5f1a9 100644 --- a/app/assets/javascripts/raven/raven_config.js +++ b/app/assets/javascripts/raven/raven_config.js @@ -1,4 +1,5 @@ import Raven from 'raven-js'; +import $ from 'jquery'; const IGNORE_ERRORS = [ // Random plugins/extensions @@ -74,7 +75,7 @@ const RavenConfig = { }, bindRavenErrors() { - window.$(document).on('ajaxError.raven', this.handleRavenErrors); + $(document).on('ajaxError.raven', this.handleRavenErrors); }, handleRavenErrors(event, req, config, err) { |