summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/diff.js
diff options
context:
space:
mode:
authorLuke "Jared" Bennett <lbennett@gitlab.com>2017-09-15 10:19:43 +0100
committerLuke "Jared" Bennett <lbennett@gitlab.com>2017-09-15 10:19:43 +0100
commit6d59795ebbe51c99317ead0be62591a5f0926c92 (patch)
treee05db8dc216ef3ee8ab18a7f83dd781c54e3177e /app/assets/javascripts/diff.js
parente0e153d2d73199a16e7e7dbc1b34cfeabbc26410 (diff)
downloadgitlab-ce-6d59795ebbe51c99317ead0be62591a5f0926c92.tar.gz
Review changes
Diffstat (limited to 'app/assets/javascripts/diff.js')
-rw-r--r--app/assets/javascripts/diff.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/diff.js b/app/assets/javascripts/diff.js
index c12dc7bdc2c..baeec130579 100644
--- a/app/assets/javascripts/diff.js
+++ b/app/assets/javascripts/diff.js
@@ -18,7 +18,7 @@ class Diff {
});
const tab = document.getElementById('diffs');
- if (tab && tab.dataset.isLocked === 'false') FilesCommentButton.init($diffFile);
+ if (tab && !Object.hasOwnProperty.call(tab.dataset, 'isLocked')) FilesCommentButton.init($diffFile);
$diffFile.each((index, file) => new gl.ImageFile(file));