From f36d6a4133de9b5c13ef99ee592e40058673fab7 Mon Sep 17 00:00:00 2001 From: Daniel Bainton Date: Mon, 13 Oct 2008 10:23:22 +0000 Subject: [PATCH] Fix and {H,L} keys to work with the with (liberator) change --- content/bookmarks.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/content/bookmarks.js b/content/bookmarks.js index 4ba88b4e..cdf882c4 100644 --- a/content/bookmarks.js +++ b/content/bookmarks.js @@ -584,22 +584,22 @@ with (liberator) liberator.History = function () //{{{ mappings.add(myModes, [""], "Go to an older position in the jump list", - function (count) { history.stepTo(-(count > 1 ? count : 1)); }, + function (count) { liberator.history.stepTo(-(count > 1 ? count : 1)); }, { flags: Mappings.flags.COUNT }); mappings.add(myModes, [""], "Go to a newer position in the jump list", - function (count) { history.stepTo(count > 1 ? count : 1); }, + function (count) { liberator.history.stepTo(count > 1 ? count : 1); }, { flags: Mappings.flags.COUNT }); mappings.add(myModes, ["H", "", ""], "Go back in the browser history", - function (count) { history.stepTo(-(count > 1 ? count : 1)); }, + function (count) { liberator.history.stepTo(-(count > 1 ? count : 1)); }, { flags: Mappings.flags.COUNT }); mappings.add(myModes, ["L", "", ""], "Go forward in the browser history", - function (count) { history.stepTo(count > 1 ? count : 1); }, + function (count) { liberator.history.stepTo(count > 1 ? count : 1); }, { flags: Mappings.flags.COUNT }); /////////////////////////////////////////////////////////////////////////////}}} @@ -631,7 +631,7 @@ with (liberator) liberator.History = function () //{{{ } else { - history.stepTo(count > 0 ? -1 * count : -1); + liberator.history.stepTo(count > 0 ? -1 * count : -1); } } }, @@ -679,7 +679,7 @@ with (liberator) liberator.History = function () //{{{ } else { - history.stepTo(count > 0 ? count : 1); + liberator.history.stepTo(count > 0 ? count : 1); } } },