mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 22:02:26 +01:00
Fix Bookmark* autocmd bug.
This commit is contained in:
@@ -15,13 +15,13 @@ var Bookmarks = Module("bookmarks", {
|
|||||||
|
|
||||||
storage.addObserver("bookmark-cache", function (key, event, arg) {
|
storage.addObserver("bookmark-cache", function (key, event, arg) {
|
||||||
if (["add", "change", "remove"].indexOf(event) >= 0)
|
if (["add", "change", "remove"].indexOf(event) >= 0)
|
||||||
autocommands.trigger("Bookmark" + event[0].toUpperCase() + event.substr(1),
|
autocommands.trigger("Bookmark" + util.capitalize(event),
|
||||||
iter({
|
iter({
|
||||||
bookmark: {
|
bookmark: {
|
||||||
toString: function () "bookmarkcache.bookmarks[" + arg.id + "]",
|
toString: function () "bookmarkcache.bookmarks[" + arg.id + "]",
|
||||||
valueOf: function () arg
|
valueOf: function () arg
|
||||||
}
|
}
|
||||||
}, arg));
|
}, arg).toObject());
|
||||||
bookmarks.timer.tell();
|
bookmarks.timer.tell();
|
||||||
}, window);
|
}, window);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user