summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/single_file_diff.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/single_file_diff.js')
-rw-r--r--app/assets/javascripts/single_file_diff.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/single_file_diff.js b/app/assets/javascripts/single_file_diff.js
index 9d181586b1d..b9adc5f3728 100644
--- a/app/assets/javascripts/single_file_diff.js
+++ b/app/assets/javascripts/single_file_diff.js
@@ -36,13 +36,13 @@
if (!this.isOpen && !this.hasError) {
this.content.hide();
this.collapsedContent.show();
- if (DiffNotesApp) {
+ if (typeof DiffNotesApp !== 'undefined') {
DiffNotesApp.compileComponents();
}
} else if (this.content) {
this.collapsedContent.hide();
this.content.show();
- if (DiffNotesApp) {
+ if (typeof DiffNotesApp !== 'undefined') {
DiffNotesApp.compileComponents();
}
} else {
@@ -59,7 +59,7 @@
if (data.html) {
_this.content = $(data.html);
_this.content.syntaxHighlight();
- if (DiffNotesApp) {
+ if (typeof DiffNotesApp !== 'undefined') {
DiffNotesApp.compileComponents();
}
} else {