Add an empty transportsIndex to the mail connector by default

This commit is contained in:
Ritchie Martori 2014-01-10 10:18:21 -08:00
parent 6bb0ba2d95
commit 7e1810a1ad
1 changed files with 2 additions and 1 deletions

View File

@ -18,7 +18,8 @@ module.exports = MailConnector;
function MailConnector(settings) {
assert(typeof settings === 'object', 'cannot initiaze MailConnector without a settings object');
var transports = settings.transports || [];
this.transportsIndex = {};
transports.forEach(this.setupTransport.bind(this));
}