1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 12:52:28 +01:00

Merge testing.

--HG--
rename : common/content/base.js => common/modules/base.jsm
rename : common/content/services.js => common/modules/services.jsm
rename : common/content/style.js => common/modules/styles.jsm
rename : common/content/template.js => common/modules/template.jsm
rename : common/content/util.js => common/modules/util.jsm
This commit is contained in:
Kris Maglione
2010-08-31 21:09:13 -04:00
parent 5632e14721
commit 8b0d9586b2
39 changed files with 2156 additions and 2197 deletions

View File

@@ -11,8 +11,6 @@
/** @instance editor */
const Editor = Module("editor", {
requires: ["config"],
init: function () {
// store our last search with f, F, t or T
//
@@ -408,10 +406,10 @@ const Editor = Module("editor", {
// blink the textbox after returning
if (textBox) {
let colors = [tmpBg, oldBg, tmpBg, oldBg];
(function () {
(function next() {
textBox.style.backgroundColor = colors.shift();
if (colors.length > 0)
setTimeout(arguments.callee, 100);
setTimeout(next, 100);
})();
}
@@ -577,10 +575,8 @@ const Editor = Module("editor", {
dactyl.echo(mode + " " + lhs + " " + rhs, commandline.FORCE_SINGLELINE); // 2 spaces, 3 spaces
}
else {
list = template.tabular(["", "LHS", "RHS"], [], list);
commandline.echo(list, commandline.HL_NORMAL, commandline.FORCE_MULTILINE);
}
else
commandline.commandOutput(template.tabular(["", "LHS", "RHS"], [], list));
},
/**
@@ -670,7 +666,7 @@ const Editor = Module("editor", {
}, {
completer: function (context, args) completion.abbreviation(context, args, mode),
literal: 0,
serial: function () [ {
serialize: function () [ {
command: this.name,
arguments: [lhs],
literalArg: abbr[1]