summaryrefslogtreecommitdiff
path: root/common/modules/bookmarkcache.jsm
diff options
context:
space:
mode:
Diffstat (limited to 'common/modules/bookmarkcache.jsm')
-rw-r--r--common/modules/bookmarkcache.jsm10
1 files changed, 5 insertions, 5 deletions
diff --git a/common/modules/bookmarkcache.jsm b/common/modules/bookmarkcache.jsm
index 5d67428a..29299ef1 100644
--- a/common/modules/bookmarkcache.jsm
+++ b/common/modules/bookmarkcache.jsm
@@ -18,10 +18,10 @@ Bookmark.prototype.__defineGetter__("extra", function () [
["tags", this.tags.join(", "), "Tag"]
].filter(function (item) item[1]));
-const annotation = services.get("annotation");
-const bookmarks = services.get("bookmarks");
-const history = services.get("history");
-const tagging = services.get("tagging");
+const annotation = services.annotation;
+const bookmarks = services.bookmarks;
+const history = services.history;
+const tagging = services.tagging;
const name = "bookmark-cache";
const BookmarkCache = Module("BookmarkCache", XPCOM(Ci.nsINavBookmarkObserver), {
@@ -85,7 +85,7 @@ const BookmarkCache = Module("BookmarkCache", XPCOM(Ci.nsINavBookmarkObserver),
isRegularBookmark: function isRegularBookmark(id) {
do {
var root = id;
- if (services.get("livemark") && services.get("livemark").isLivemark(id))
+ if (services.livemark && services.livemark.isLivemark(id))
return false;
id = bookmarks.getFolderIdForItem(id);
} while (id != bookmarks.placesRoot && id != root);