Connection: remove deprecated JS API usage

Fixes: https://github.com/mscdex/node-imap/issues/483
fork
simonhochrein 8 years ago committed by Brian White
parent 37abe764ba
commit 00ef369670
No known key found for this signature in database
GPG Key ID: 606D7358F94DA209

@ -1126,7 +1126,7 @@ Connection.prototype.setKeywordsSince = function(uids, keywords, modseq, cb) {
// END Extension methods =======================================================
// Namespace for seqno-based commands
Connection.prototype.__defineGetter__('seq', function() {
Object.defineProperty(Connection.prototype, 'seq', { get: function() {
var self = this;
return {
delKeywords: function(seqnos, keywords, cb) {
@ -1222,7 +1222,7 @@ Connection.prototype.__defineGetter__('seq', function() {
cb);
}
};
});
}});
Connection.prototype._resUntagged = function(info) {
var type = info.type, i, len, box, attrs, key;
@ -1708,7 +1708,6 @@ Connection.prototype._starttls = function() {
self._sock.on('timeout', this._onSocketTimeout);
self._sock.setTimeout(self._config.socketTimeout);
self._parser.setStream(self._sock);
});
};

Loading…
Cancel
Save