summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorLuke "Jared" Bennett <lbennett@gitlab.com>2017-05-25 07:12:36 +0000
committerPhil Hughes <me@iamphill.com>2017-05-25 07:12:36 +0000
commit710e35378a55d1ff0cdb164f844a9e152c04b3df (patch)
tree8e263cc474d5d44096a12bd3188b2572b75da68f /app
parentec2130bea8d2ee1b327b0c99b27768cd13bd6cb8 (diff)
downloadgitlab-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.js3
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) {