From 5d51fd491a2c065e98e3d1b16ff9b476b2f5511e Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Wed, 1 Dec 2010 21:57:51 -0500 Subject: Do away with services.(get|create), and move the prefs module to its own file. --- common/modules/bookmarkcache.jsm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'common/modules/bookmarkcache.jsm') 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); -- cgit v1.2.3