From 328e7397ea535f6919821d7a374e0daf9d67232f Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sat, 10 Dec 2016 13:58:06 +0100 Subject: [PATCH] Fix errors reported by the `no-extra-bind` ESLint rule http://eslint.org/docs/rules/no-extra-bind --- web/firefoxcom.js | 2 +- web/secondary_toolbar.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/firefoxcom.js b/web/firefoxcom.js index 05377113f..0b1a4122f 100644 --- a/web/firefoxcom.js +++ b/web/firefoxcom.js @@ -173,7 +173,7 @@ Preferences._readFromStorage = function (prefObj) { highlightAll: !!evt.detail.highlightAll, findPrevious: !!evt.detail.findPrevious }); - }.bind(this); + }; for (var i = 0, len = events.length; i < len; i++) { window.addEventListener(events[i], handleEvent); diff --git a/web/secondary_toolbar.js b/web/secondary_toolbar.js index eb43de586..427b947a0 100644 --- a/web/secondary_toolbar.js +++ b/web/secondary_toolbar.js @@ -188,7 +188,7 @@ var SecondaryToolbar = (function SecondaryToolbarClosure() { toggleHandToolButton.firstElementChild.textContent = mozL10n.get('hand_tool_enable_label', null, 'Enable hand tool'); } - }.bind(this)); + }); }, open: function SecondaryToolbar_open() {