mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Bug 1374282 - script generated patch to remove useless bind calls, r=Mossop.
This commit is contained in:
parent
5b8f8b884c
commit
1e40201f6d
@ -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;
|
||||
|
@ -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;
|
||||
});
|
||||
|
@ -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».
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user