diff options
author | Kris Maglione <maglione.k@gmail.com> | 2010-12-01 21:57:51 -0500 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2010-12-01 21:57:51 -0500 |
commit | 5d51fd491a2c065e98e3d1b16ff9b476b2f5511e (patch) | |
tree | 3d28028db8794fb4ffb0d8bd21d72cc25461ea1d /common/modules/bookmarkcache.jsm | |
parent | 0bf9cfb0bc1bad386d463d6111533653d776e4b7 (diff) | |
download | pentadactyl-5d51fd491a2c065e98e3d1b16ff9b476b2f5511e.tar.gz |
Do away with services.(get|create), and move the prefs module to its own file.
Diffstat (limited to 'common/modules/bookmarkcache.jsm')
-rw-r--r-- | common/modules/bookmarkcache.jsm | 10 |
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); |