diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-05-08 14:17:16 -0500 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-05-08 17:40:23 -0500 |
commit | 8d60a9b64795d1561e89df289d5d504ffe22be36 (patch) | |
tree | c1856b07b475865f5e4e351d5775ddf810d1e2b6 | |
parent | 0163624985e203372cc70599a7481fc19d96fa6d (diff) | |
download | gitlab-ce-8d60a9b64795d1561e89df289d5d504ffe22be36.tar.gz |
remove bind polyfill from users/calendar.js
-rw-r--r-- | app/assets/javascripts/users/calendar.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/assets/javascripts/users/calendar.js b/app/assets/javascripts/users/calendar.js index 32ffa2f0ac0..b11f691e424 100644 --- a/app/assets/javascripts/users/calendar.js +++ b/app/assets/javascripts/users/calendar.js @@ -3,12 +3,10 @@ import d3 from 'd3'; (function() { - var bind = function(fn, me) { return function() { return fn.apply(me, arguments); }; }; - this.Calendar = (function() { function Calendar(timestamps, calendar_activities_path) { this.calendar_activities_path = calendar_activities_path; - this.clickDay = bind(this.clickDay, this); + this.clickDay = this.clickDay.bind(this); this.currentSelectedDate = ''; this.daySpace = 1; this.daySize = 15; |