mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 08:37:57 +01:00
Liberate Buffer from the tyrany of the current window. Add DOM#contextmenu event. Provide sensible screenX/screenY for mouse events.
--HG-- rename : common/content/buffer.js => common/modules/buffer.jsm
This commit is contained in:
@@ -36,12 +36,12 @@ var History = Module("history", {
|
||||
let root = services.history.executeQuery(query, options).root;
|
||||
root.containerOpen = true;
|
||||
try {
|
||||
let items = iter(util.range(0, root.childCount)).map(function (i) {
|
||||
var items = iter(util.range(0, root.childCount)).map(function (i) {
|
||||
let node = root.getChild(i);
|
||||
return {
|
||||
url: node.uri,
|
||||
title: node.title,
|
||||
icon: node.icon ? node.icon : DEFAULT_FAVICON
|
||||
icon: node.icon ? node.icon : BookmarkCache.DEFAULT_FAVICON
|
||||
};
|
||||
}).toArray();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user