Replace lastVisited method in DocInfo with timestamp attribute

This is not only more consistent with the name, uri and
mimeType attributes, but makes adding Zeitgeist support easier.
This commit is contained in:
Siegfried-Angel Gevatter Pujals
2009-07-25 17:00:37 +02:00
parent 04538c65b5
commit f3efbf432f
3 changed files with 7 additions and 12 deletions

View File

@ -359,7 +359,7 @@ RecentDocsWidget.prototype = {
items.push(docInfo);
}
items.sort(function (a,b) { return b.lastVisited() - a.lastVisited(); });
items.sort(function (a,b) { return b.timestamp - a.timestamp; });
for (i = 0; i < Math.min(items.length, 5); i++)
this.addItem(items[i]);
}