diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-05-08 14:01:01 -0500 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-05-08 17:40:15 -0500 |
commit | 98b5dd9d510442b2d032dcb83959801c96179768 (patch) | |
tree | 726f11cd57818d4841e08c75995b5d6c2eb11739 /app | |
parent | 417c7e094b265d02adaaeb6515d3b9cbf65247ea (diff) | |
download | gitlab-ce-98b5dd9d510442b2d032dcb83959801c96179768.tar.gz |
remove bind polyfill from labels.js
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/labels.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/assets/javascripts/labels.js b/app/assets/javascripts/labels.js index 17a3fc1b1e4..03dd61b4263 100644 --- a/app/assets/javascripts/labels.js +++ b/app/assets/javascripts/labels.js @@ -1,11 +1,9 @@ /* eslint-disable func-names, space-before-function-paren, no-var, prefer-rest-params, wrap-iife, vars-on-top, no-unused-vars, max-len */ (function() { - var bind = function(fn, me) { return function() { return fn.apply(me, arguments); }; }; - this.Labels = (function() { function Labels() { - this.setSuggestedColor = bind(this.setSuggestedColor, this); - this.updateColorPreview = bind(this.updateColorPreview, this); + this.setSuggestedColor = this.setSuggestedColor.bind(this); + this.updateColorPreview = this.updateColorPreview.bind(this); var form; form = $('.label-form'); this.cleanBinding(); |