BigW Consortium Gitlab

Commit 4c256706 by Mike Greiling

remove bind polyfill from right_sidebar.js

parent bf9dd2d7
...@@ -3,11 +3,9 @@ ...@@ -3,11 +3,9 @@
import Cookies from 'js-cookie'; import Cookies from 'js-cookie';
(function() { (function() {
var bind = function(fn, me) { return function() { return fn.apply(me, arguments); }; };
this.Sidebar = (function() { this.Sidebar = (function() {
function Sidebar(currentUser) { function Sidebar(currentUser) {
this.toggleTodo = bind(this.toggleTodo, this); this.toggleTodo = this.toggleTodo.bind(this);
this.sidebar = $('aside'); this.sidebar = $('aside');
this.removeListeners(); this.removeListeners();
this.addEventListeners(); this.addEventListeners();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment