1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 00:14:14 +01:00

More cleanup. Fix some Teledactyl bugginess.

This commit is contained in:
Kris Maglione
2011-09-29 21:25:17 -04:00
parent acd13342a4
commit 0cf1151e0a
21 changed files with 813 additions and 716 deletions

View File

@@ -23,7 +23,7 @@ var Tabs = Module("tabs", {
// hide tabs initially to prevent flickering when 'stal' would hide them
// on startup
if (config.hasTabbrowser)
if (config.has("tabbrowser"))
config.tabStrip.collapsed = true;
this.tabStyle = styles.system.add("tab-strip-hiding", config.styleableChrome,
@@ -762,7 +762,7 @@ var Tabs = Module("tabs", {
function () { tabs.select(0, false); },
{ argCount: "0" });
if (config.hasTabbrowser) {
if (config.has("tabbrowser")) {
commands.add(["b[uffer]"],
"Switch to a buffer",
function (args) { tabs.switchTo(args[0], args.bang, args.count); }, {
@@ -1014,7 +1014,7 @@ var Tabs = Module("tabs", {
function ({ count }) { tabs.select("-" + (count || 1), true); },
{ count: true });
if (config.hasTabbrowser) {
if (config.has("tabbrowser")) {
mappings.add([modes.NORMAL], ["b"],
"Open a prompt to switch buffers",
function ({ count }) {
@@ -1071,7 +1071,7 @@ var Tabs = Module("tabs", {
options: function () {
options.add(["showtabline", "stal"],
"Define when the tab bar is visible",
"string", config.defaults["showtabline"],
"string", true,
{
setter: function (value) {
if (value === "never")
@@ -1099,7 +1099,7 @@ var Tabs = Module("tabs", {
}
});
if (config.hasTabbrowser) {
if (config.has("tabbrowser")) {
let activateGroups = [
["all", "Activate everything"],
["addons", ":addo[ns] command"],