1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-26 19:02:20 -05:00

change name of outbox callback

This commit is contained in:
Tankred Hase 2014-02-28 16:27:11 +01:00
parent 220a112091
commit 118c548ca2

View File

@ -33,9 +33,9 @@ define(function(require) {
*/ */
OutboxBO.prototype.startChecking = function(callback) { OutboxBO.prototype.startChecking = function(callback) {
// remember global callback // remember global callback
this._onError = callback; this._onUpdate = callback;
// start periodic checking of outbox // 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(); callback();
// don't wait for next round // don't wait for next round
self._processOutbox(self._onError); self._processOutbox(self._onUpdate);
}); });
} }
}; };