diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-05-08 14:12:16 -0500 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-05-08 17:40:20 -0500 |
commit | e4e95adf484d7cc650d14814137e080af51fa828 (patch) | |
tree | 473b0c5e8ee9c4ec57bc6e468ce32a9f400e0fd2 | |
parent | e3b19c8387366c923320b2fe004a1ef61c47fd95 (diff) | |
download | gitlab-ce-e4e95adf484d7cc650d14814137e080af51fa828.tar.gz |
remove bind polyfill from single_file_diff.js
-rw-r--r-- | app/assets/javascripts/single_file_diff.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/assets/javascripts/single_file_diff.js b/app/assets/javascripts/single_file_diff.js index 294d087554e..bacb26734c9 100644 --- a/app/assets/javascripts/single_file_diff.js +++ b/app/assets/javascripts/single_file_diff.js @@ -1,8 +1,6 @@ /* eslint-disable func-names, prefer-arrow-callback, space-before-function-paren, no-var, prefer-rest-params, wrap-iife, one-var, one-var-declaration-per-line, consistent-return, no-param-reassign, max-len */ (function() { - var bind = function(fn, me) { return function() { return fn.apply(me, arguments); }; }; - window.SingleFileDiff = (function() { var COLLAPSED_HTML, ERROR_HTML, LOADING_HTML, WRAPPER; @@ -16,7 +14,7 @@ function SingleFileDiff(file) { this.file = file; - this.toggleDiff = bind(this.toggleDiff, this); + this.toggleDiff = this.toggleDiff.bind(this); this.content = $('.diff-content', this.file); this.$toggleIcon = $('.diff-toggle-caret', this.file); this.diffForPath = this.content.find('[data-diff-for-path]').data('diff-for-path'); |