diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-05-10 14:21:58 +0100 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-05-10 14:21:58 +0100 |
commit | cc8073653ea5f4bf54026b849f1e0b23a10de15a (patch) | |
tree | 4dce464e49374b1c67f86f006415bbbc7ecbfa7d /app/assets/javascripts/labels.js | |
parent | a3074085cd01c0c062cb5f07e848375714dfd6d0 (diff) | |
parent | 09c2aab4aa4661b147545e2c41b6a0100fc57b11 (diff) | |
download | gitlab-ce-cc8073653ea5f4bf54026b849f1e0b23a10de15a.tar.gz |
Merge branch 'master' into 30286-vue-loadin-icon30286-vue-loadin-icon
* master: (62 commits)
Fix broken test - load correct data
Remove redirect for old issue url containing id instead of iid
Use vue file for table pagination component
stub error handlers where uncaught Promise rejections currently exist
Revert "Fix OpenID spec failure that assumed current_sign_in_at would be set"
Add :redis keyword to some specs clear state of trackable attributes
Fix OpenID spec failure that assumed current_sign_in_at would be set
Kubernetes Helm Chart Install docs
Add Repository subnav to 'Find files'
Make tree, blob and blame pages more consistent
Add screenshots to Triggered Build docs
Add Prometheus memory sparkline to MR widget
Fix test failure in job vue componenFix test failure in job vue componentt
Remove unnecessary if check
Fix links in code review docs
Improve readability of code
Remove some unused Gitlab::Git code
Use Rails 'delegate'
Remove CI/CD models directory from `eager_load_paths`
Don't make Commit#raw_deltas private
...
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(); |