summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-05-08 14:10:32 -0500
committerMike Greiling <mike@pixelcog.com>2017-05-08 17:40:19 -0500
commit4a0e2d28a93b55b5c6959acd451c8a25456c2d5b (patch)
tree92f314368c84404fc1bd316bdd88361f9ec5ede8 /app
parentf71a03728a792d104e2d982acbd1e6d8950334a2 (diff)
downloadgitlab-ce-4a0e2d28a93b55b5c6959acd451c8a25456c2d5b.tar.gz
remove bind polyfill from project_find_file.js
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/project_find_file.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/app/assets/javascripts/project_find_file.js b/app/assets/javascripts/project_find_file.js
index e01668eabef..11f9754780d 100644
--- a/app/assets/javascripts/project_find_file.js
+++ b/app/assets/javascripts/project_find_file.js
@@ -2,18 +2,16 @@
/* global fuzzaldrinPlus */
(function() {
- var bind = function(fn, me) { return function() { return fn.apply(me, arguments); }; };
-
this.ProjectFindFile = (function() {
var highlighter;
function ProjectFindFile(element1, options) {
this.element = element1;
this.options = options;
- this.goToBlob = bind(this.goToBlob, this);
- this.goToTree = bind(this.goToTree, this);
- this.selectRowDown = bind(this.selectRowDown, this);
- this.selectRowUp = bind(this.selectRowUp, this);
+ this.goToBlob = this.goToBlob.bind(this);
+ this.goToTree = this.goToTree.bind(this);
+ this.selectRowDown = this.selectRowDown.bind(this);
+ this.selectRowUp = this.selectRowUp.bind(this);
this.filePaths = {};
this.inputElement = this.element.find(".file-finder-input");
// init event