Bug 1374282 - script generated patch to remove useless bind calls, r=Mossop.

This commit is contained in:
Florian Quèze 2017-06-22 12:51:42 +02:00
parent 5b8f8b884c
commit 1e40201f6d
4 changed files with 8 additions and 8 deletions

View File

@ -31,9 +31,9 @@ this.Store = class Store {
// Bind each redux method so we can call it directly from the Store. E.g.,
// store.dispatch() will call store._store.dispatch();
["dispatch", "getState", "subscribe"].forEach(method => {
this[method] = function(...args) {
this[method] = (...args) => {
return this._store[method](...args);
}.bind(this);
};
});
this.feeds = new Map();
this._feedFactories = null;

View File

@ -57,10 +57,10 @@ function FormAutofillParent() {
let {profileStorage} = Cu.import("resource://formautofill/ProfileStorage.jsm", {});
log.debug("Loading profileStorage");
profileStorage.initialize().then(function onStorageInitialized() {
profileStorage.initialize().then(() => {
// Update the saved field names to compute the status and update child processes.
this._updateSavedFieldNames();
}.bind(this));
});
return profileStorage;
});

View File

@ -811,10 +811,10 @@ let KintoClientBase = (_dec = (0, _utils.nobatch)("This operation is not support
return processNextPage(nextPage);
};
const processNextPage = async function (nextPage) {
const processNextPage = async nextPage => {
const { headers } = options;
return handleResponse((await this.http.request(nextPage, { headers })));
}.bind(this);
};
const pageResults = (results, nextPage, etag, totalRecords) => {
// ETag string is supposed to be opaque and stored «as-is».

View File

@ -213,12 +213,12 @@ HandlerService.prototype = {
},
_onDBChange() {
return (async function() {
return (async () => {
if (this.__store) {
await this.__store.finalize();
}
this.__store = null;
}.bind(this))().catch(Cu.reportError);
})().catch(Cu.reportError);
},
// nsIObserver