~djl/bookmark-keys

4c79d486b231522c08f3e9af8fdc7721213828b5 — David Logie 12 years ago 8899814
Silence deprecation warnings.
1 files changed, 2 insertions(+), 3 deletions(-)

M src/chrome/content/command_keys.js
M src/chrome/content/command_keys.js => src/chrome/content/command_keys.js +2 -3
@@ 28,9 28,8 @@ var commandKeys = {

        var bookmarksService = Components.classes["@mozilla.org/browser/nav-bookmarks-service;1"]
                                         .getService(Components.interfaces.nsINavBookmarksService);
        var toolbarFolder = bookmarksService.toolbarFolder;

        query.setFolders([toolbarFolder], 1);
        query.setFolders([bookmarksService.toolbarFolder], 1);

        var result = historyService.executeQuery(query, options);
        var bookmarks_bar = result.root;


@@ 47,7 46,7 @@ var commandKeys = {
    go: function(i) {
        var node = commandKeys.getBookmark(i);
        if (node) {
            PlacesUIUtils.openNodeIn(node, "current");
            PlacesUIUtils.openNodeIn(node, "current", window);
        }
    }
}