1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-04 21:24:12 +01:00

Make :pageinfo extensible

This commit is contained in:
Kris Maglione
2008-10-02 19:22:02 +00:00
parent 9dd5f1612b
commit 8100d941f8
7 changed files with 240 additions and 226 deletions

View File

@@ -175,13 +175,14 @@ liberator.Bookmarks = function () //{{{
bookmarksService.addObserver(observer, false);
}
var cache = liberator.storage.newObject("bookmark-cache", Cache, false);
liberator.storage.addObserver("bookmark-cache", function (key, event, arg)
let bookmarkObserver = function (key, event, arg)
{
if (event == "add")
liberator.autocommands.trigger("BookmarkAdd", "");
liberator.statusline.updateUrl();
});
}
var cache = liberator.storage.newObject("bookmark-cache", Cache, false);
liberator.storage.addObserver("bookmark-cache", bookmarkObserver);
/////////////////////////////////////////////////////////////////////////////}}}
////////////////////// OPTIONS /////////////////////////////////////////////////
@@ -494,6 +495,7 @@ liberator.Bookmarks = function () //{{{
destroy: function ()
{
liberator.storage.removeObserver("bookmark-cache", bookmarkObserver);
}
};
//}}}