1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 00:02:27 +01:00

Fix Bookmark* autocmd bug.

This commit is contained in:
Kris Maglione
2012-02-24 18:01:33 -05:00
parent 0b8980633e
commit c1fc970518

View File

@@ -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);
}, },