@ -379,7 +379,7 @@ Connection.prototype.openBox = function(name, readOnly, cb) {
if (this.state !== 'authenticated')
throw new Error('Not authenticated');
if (cb === undefined) {
if (typeof readOnly === 'function') {
cb = readOnly;
readOnly = false;
}