Commit ec3ea2b8 authored by Natalia Tepluhina's avatar Natalia Tepluhina

Merge branch '34606-Remove-IIFEs-from-merge_request.js' into 'master'

Resolve "Remove IIFEs from merge_request.js"

See merge request gitlab-org/gitlab!19294
parents c5a402b3 0d7649e8
......@@ -17,14 +17,7 @@ function MergeRequest(opts) {
this.opts = opts != null ? opts : {};
this.submitNoteForm = this.submitNoteForm.bind(this);
this.$el = $('.merge-request');
this.$('.show-all-commits').on(
'click',
(function(_this) {
return function() {
return _this.showAllCommits();
};
})(this),
);
this.$('.show-all-commits').on('click', () => this.showAllCommits());
this.initTabs();
this.initMRBtnListeners();
......
---
title: Remove IIFEs from merge_request.js
merge_request: 19294
author: minghuan lei
type: other
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment