1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-10 09:55:46 +01:00

Whitespace fixes.

This commit is contained in:
Doug Kearns
2009-01-11 14:07:10 +11:00
parent f5e2a671e8
commit 9729969d8b
9 changed files with 12 additions and 14 deletions

View File

@@ -1388,7 +1388,6 @@ function Completion() //{{{
{ process.call(this, item, text) } { process.call(this, item, text) }
</>]; </>];
context.completions = util.map(tabs.browsers, function ([i, browser]) { context.completions = util.map(tabs.browsers, function ([i, browser]) {
let indicator = " "; let indicator = " ";
if (i == tabs.index()) if (i == tabs.index())

View File

@@ -630,7 +630,7 @@ function Events() //{{{
// load all macros inside ~/.vimperator/macros/ // load all macros inside ~/.vimperator/macros/
// setTimeout needed since io. is loaded after events. // setTimeout needed since io. is loaded after events.
setTimeout (function () { setTimeout(function () {
try try
{ {
let dirs = io.getRuntimeDirectories("macros"); let dirs = io.getRuntimeDirectories("macros");

View File

@@ -247,7 +247,8 @@ const modes = (function () //{{{
set isReplaying(value) { isReplaying = value; this.show(); }, set isReplaying(value) { isReplaying = value; this.show(); },
get main() main, get main() main,
set main(value) { set main(value)
{
if (value != main) if (value != main)
handleModeChange(main, value); handleModeChange(main, value);

View File

@@ -685,7 +685,6 @@ function CommandLine() //{{{
let output = util.xmlToDom(lastMowOutput, doc); let output = util.xmlToDom(lastMowOutput, doc);
XML.ignoreWhitespace = true; XML.ignoreWhitespace = true;
// FIXME: need to make sure an open MOW is closed when commands // FIXME: need to make sure an open MOW is closed when commands
// that don't generate output are executed // that don't generate output are executed
if (outputContainer.collapsed) if (outputContainer.collapsed)
@@ -988,7 +987,8 @@ function CommandLine() //{{{
get mode() (modes.extended == modes.EX) ? "cmd" : "search", get mode() (modes.extended == modes.EX) ? "cmd" : "search",
get silent() silent, get silent() silent,
set silent(val) { set silent(val)
{
silent = val; silent = val;
if (silent) if (silent)
storage.styles.addSheet(true, "silent-mode", "chrome://*", "#liberator-commandline > * { opacity: 0 }"); storage.styles.addSheet(true, "silent-mode", "chrome://*", "#liberator-commandline > * { opacity: 0 }");
@@ -1098,7 +1098,6 @@ function CommandLine() //{{{
keepCommand = false; keepCommand = false;
}, },
/** /**
* Hides the command-line, and shows any status messages that * Hides the command-line, and shows any status messages that
* are under it. * are under it.

View File

@@ -47,8 +47,8 @@ ChromeData.prototype = {
defaultPort: -1, defaultPort: -1,
allowPort: function (port, scheme) false, allowPort: function (port, scheme) false,
protocolFlags: nsIProtocolHandler.URI_NORELATIVE protocolFlags: nsIProtocolHandler.URI_NORELATIVE
| nsIProtocolHandler.URI_NOAUTH | nsIProtocolHandler.URI_NOAUTH
| nsIProtocolHandler.URI_IS_UI_RESOURCE, | nsIProtocolHandler.URI_IS_UI_RESOURCE,
newURI: function (spec, charset, baseURI) newURI: function (spec, charset, baseURI)
{ {

View File

@@ -47,8 +47,8 @@ ChromeData.prototype = {
defaultPort: -1, defaultPort: -1,
allowPort: function (port, scheme) false, allowPort: function (port, scheme) false,
protocolFlags: nsIProtocolHandler.URI_NORELATIVE protocolFlags: nsIProtocolHandler.URI_NORELATIVE
| nsIProtocolHandler.URI_NOAUTH | nsIProtocolHandler.URI_NOAUTH
| nsIProtocolHandler.URI_IS_UI_RESOURCE, | nsIProtocolHandler.URI_IS_UI_RESOURCE,
newURI: function (spec, charset, baseURI) newURI: function (spec, charset, baseURI)
{ {

View File

@@ -94,7 +94,6 @@ function getBufferPosition()
function getLocation() window.content.document.location.href; function getLocation() window.content.document.location.href;
function echoLine(str, group) function echoLine(str, group)
{ {
if (!doc) if (!doc)