1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 21:07:59 +01:00

[muttator] Fix this_selectedMessageKeys warnings

This commit is contained in:
Martin Stubenschrott
2009-11-25 23:44:35 +01:00
parent b49efd42dd
commit 9dbe5cc7b0

View File

@@ -35,17 +35,17 @@ const Mail = Module("mail", {
// Jump to a message when requested // Jump to a message when requested
let indices = []; let indices = [];
if (this._selectMessageKeys.length > 0) { if (mail._selectMessageKeys.length > 0) {
for (let j = 0; j < this._selectMessageKeys.length; j++) for (let j = 0; j < mail._selectMessageKeys.length; j++)
indices.push([gDBView.findIndexFromKey(this._selectMessageKeys[j], true), this._selectMessageKeys[j]]); indices.push([gDBView.findIndexFromKey(mail._selectMessageKeys[j], true), mail._selectMessageKeys[j]]);
indices.sort(); indices.sort();
let index = this._selectMessageCount - 1; let index = mail._selectMessageCount - 1;
if (this._selectMessageReverse) if (mail._selectMessageReverse)
index = this._selectMessageKeys.length - 1 - index; index = mail._selectMessageKeys.length - 1 - index;
gDBView.selectMsgByKey(indices[index][1]); gDBView.selectMsgByKey(indices[index][1]);
this._selectMessageKeys = []; mail._selectMessageKeys = [];
} }
} }
} }