Commit e3b19c83 authored by Mike Greiling's avatar Mike Greiling

remove bind polyfill from shortcuts.js

parent 4c256706
...@@ -4,11 +4,9 @@ ...@@ -4,11 +4,9 @@
import findAndFollowLink from './shortcuts_dashboard_navigation'; import findAndFollowLink from './shortcuts_dashboard_navigation';
(function() { (function() {
var bind = function(fn, me) { return function() { return fn.apply(me, arguments); }; };
this.Shortcuts = (function() { this.Shortcuts = (function() {
function Shortcuts(skipResetBindings) { function Shortcuts(skipResetBindings) {
this.onToggleHelp = bind(this.onToggleHelp, this); this.onToggleHelp = this.onToggleHelp.bind(this);
this.enabledHelp = []; this.enabledHelp = [];
if (!skipResetBindings) { if (!skipResetBindings) {
Mousetrap.reset(); Mousetrap.reset();
......
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