diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-05-08 22:01:01 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-05-09 01:40:15 +0300 |
commit | 98b5dd9d510442b2d032dcb83959801c96179768 (patch) | |
tree | 726f11cd57818d4841e08c75995b5d6c2eb11739 /app/assets/javascripts/labels.js | |
parent | 417c7e094b265d02adaaeb6515d3b9cbf65247ea (diff) |
remove bind polyfill from labels.js
Diffstat (limited to 'app/assets/javascripts/labels.js')
-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(); |