[PATCH] Fix homepage mappings

20 views
Skip to first unread message

Oleksandr Shybystyi

unread,
Sep 5, 2012, 2:44:11 PM9/5/12
to dactyl-...@googlegroups.com
# HG changeset patch
# User Oleksandr Shybystyi <oleksa...@ya.ru>
# Date 1346870522 -10800
# Branch cpg-hack
# Node ID 41ab1d004589b6965d31c2d0a25e004e1045c5fb
# Parent ce11d7f100ff5a7396eefc2b3e299a404987453f
Fix homepage mappings

diff -r ce11d7f100ff -r 41ab1d004589 common/content/browser.js
--- a/common/content/browser.js Wed Sep 05 22:47:20 2012 +1000
+++ b/common/content/browser.js Wed Sep 05 21:42:02 2012 +0300
@@ -267,12 +267,12 @@

mappings.add([modes.NORMAL], ["<open-homepage>", "gh"],
"Open homepage",
- function () { BrowserHome(); });
+ function () { window.BrowserHome(); });

mappings.add([modes.NORMAL], ["<tab-open-homepage>", "gH"],
"Open homepage in a new tab",
function () {
- let homepages = gHomeButton.getHomePage();
+ let homepages = window.gHomeButton.getHomePage();
dactyl.open(homepages, { from: "homepage", where: dactyl.NEW_TAB });
});

Kris Maglione

unread,
Sep 14, 2012, 11:32:33 PM9/14/12
to Oleksandr Shybystyi, dactyl-...@googlegroups.com
Thanks.
--
Kris Maglione

I think conventional languages are for the birds. They're just
extensions of the von Neumann computer, and they keep our noses in the
dirt of dealing with individual words and computing addresses, and
doing all kinds of silly things like that, things that we've picked up
from programming for computers; we've built them into programming
languages; we've built them into Fortran; we've built them in PL/1;
we've built them into almost every language.
--John Backus

Reply all
Reply to author
Forward
0 new messages