Fix errors reported by the no-extra-bind ESLint rule

http://eslint.org/docs/rules/no-extra-bind
This commit is contained in:
Jonas Jenwald 2016-12-10 13:58:06 +01:00
parent 25bf5db47e
commit 328e7397ea
2 changed files with 2 additions and 2 deletions

View File

@ -173,7 +173,7 @@ Preferences._readFromStorage = function (prefObj) {
highlightAll: !!evt.detail.highlightAll, highlightAll: !!evt.detail.highlightAll,
findPrevious: !!evt.detail.findPrevious findPrevious: !!evt.detail.findPrevious
}); });
}.bind(this); };
for (var i = 0, len = events.length; i < len; i++) { for (var i = 0, len = events.length; i < len; i++) {
window.addEventListener(events[i], handleEvent); window.addEventListener(events[i], handleEvent);

View File

@ -188,7 +188,7 @@ var SecondaryToolbar = (function SecondaryToolbarClosure() {
toggleHandToolButton.firstElementChild.textContent = toggleHandToolButton.firstElementChild.textContent =
mozL10n.get('hand_tool_enable_label', null, 'Enable hand tool'); mozL10n.get('hand_tool_enable_label', null, 'Enable hand tool');
} }
}.bind(this)); });
}, },
open: function SecondaryToolbar_open() { open: function SecondaryToolbar_open() {