mirror of
https://github.com/moparisthebest/mail
synced 2024-11-23 01:12:19 -05:00
change name of outbox callback
This commit is contained in:
parent
220a112091
commit
118c548ca2
@ -33,9 +33,9 @@ define(function(require) {
|
||||
*/
|
||||
OutboxBO.prototype.startChecking = function(callback) {
|
||||
// remember global callback
|
||||
this._onError = callback;
|
||||
this._onUpdate = callback;
|
||||
// start periodic checking of outbox
|
||||
this._intervalId = setInterval(this._processOutbox.bind(this, this._onError), config.checkOutboxInterval);
|
||||
this._intervalId = setInterval(this._processOutbox.bind(this, this._onUpdate), config.checkOutboxInterval);
|
||||
};
|
||||
|
||||
/**
|
||||
@ -120,7 +120,7 @@ define(function(require) {
|
||||
|
||||
callback();
|
||||
// don't wait for next round
|
||||
self._processOutbox(self._onError);
|
||||
self._processOutbox(self._onUpdate);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user