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:
@@ -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);
|
||||
}
|
||||
};
|
||||
//}}}
|
||||
|
||||
Reference in New Issue
Block a user