Browse Source

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

http://eslint.org/docs/rules/no-extra-bind
Jonas Jenwald 8 years ago
parent
commit
328e7397ea
  1. 2
      web/firefoxcom.js
  2. 2
      web/secondary_toolbar.js

2
web/firefoxcom.js

@ -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);

2
web/secondary_toolbar.js

@ -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() {

Loading…
Cancel
Save