summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2017-03-09 00:14:09 -0500
committerAlfredo Sumaran <alfredo@gitlab.com>2017-03-09 14:59:23 -0500
commit0cb1f1c8f1a3ae0f785daa1e7bc93464647608ef (patch)
tree175801f0f23259952c889da2a65e654c3289101b
parent4301685ff0f2dd80a2ff4333f9822a5fdc50de15 (diff)
downloadgitlab-ce-29219-remove-iife.tar.gz
Remove last IIFE from commits.js29219-remove-iife
-rw-r--r--app/assets/javascripts/commits.js12
1 files changed, 5 insertions, 7 deletions
diff --git a/app/assets/javascripts/commits.js b/app/assets/javascripts/commits.js
index f65a97f14d2..ebb03336975 100644
--- a/app/assets/javascripts/commits.js
+++ b/app/assets/javascripts/commits.js
@@ -1,4 +1,4 @@
-/* eslint-disable func-names, space-before-function-paren, wrap-iife, quotes, consistent-return, no-return-assign, no-param-reassign, one-var, no-var, one-var-declaration-per-line, no-unused-vars, prefer-template, object-shorthand, comma-dangle, max-len, prefer-arrow-callback */
+/* eslint-disable func-names, space-before-function-paren, quotes, consistent-return, no-return-assign, no-param-reassign, one-var, no-var, one-var-declaration-per-line, no-unused-vars, prefer-template, object-shorthand, comma-dangle, max-len, prefer-arrow-callback */
/* global Pager */
var CommitsList = {};
@@ -24,12 +24,10 @@ CommitsList.init = function(limit) {
CommitsList.initSearch = function() {
this.timer = null;
- return this.searchField.keyup((function(_this) {
- return function() {
- clearTimeout(_this.timer);
- return _this.timer = setTimeout(_this.filterResults, 500);
- };
- })(this));
+ return this.searchField.keyup(function() {
+ clearTimeout(this.timer);
+ return this.timer = setTimeout(this.filterResults, 500);
+ }.bind(this));
};
CommitsList.filterResults = function() {