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

Whitespace fixes.

This commit is contained in:
Doug Kearns
2009-10-03 16:58:45 +10:00
parent d0e1f3a2c2
commit e041219339
9 changed files with 43 additions and 46 deletions

View File

@@ -843,7 +843,6 @@ function Hints() //{{{
validator: Option.validateCompleter
});
/////////////////////////////////////////////////////////////////////////////}}}
////////////////////// MAPPINGS ////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{

View File

@@ -463,7 +463,6 @@ function IO() //{{{
completion.addUrlCompleter("f", "Local files", completion.file);
});
/////////////////////////////////////////////////////////////////////////////}}}
////////////////////// PUBLIC SECTION //////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{

View File

@@ -265,17 +265,17 @@ function Styles(name, store)
const Sheet = new Struct("name", "id", "sites", "css", "system", "agent");
Sheet.prototype.__defineGetter__("fullCSS", function wrapCSS() {
let filter = this.sites;
let css = this.css;
if (filter[0] == "*")
return namespace + css;
let selectors = filter.map(function (part) (/[*]$/.test(part) ? "url-prefix" :
/[\/:]/.test(part) ? "url"
: "domain")
+ '("' + part.replace(/"/g, "%22").replace(/[*]$/, "") + '")')
.join(", ");
return namespace + "/* Liberator style #" + this.id + " */ @-moz-document " + selectors + "{\n" + css + "\n}\n";
});
let filter = this.sites;
let css = this.css;
if (filter[0] == "*")
return namespace + css;
let selectors = filter.map(function (part) (/[*]$/.test(part) ? "url-prefix" :
/[\/:]/.test(part) ? "url"
: "domain")
+ '("' + part.replace(/"/g, "%22").replace(/[*]$/, "") + '")')
.join(", ");
return namespace + "/* Liberator style #" + this.id + " */ @-moz-document " + selectors + "{\n" + css + "\n}\n";
});
Sheet.prototype.__defineGetter__("enabled", function () this._enabled);
Sheet.prototype.__defineSetter__("enabled", function (on) {
this._enabled = Boolean(on);

View File

@@ -53,7 +53,7 @@ function CommandLine() //{{{
autocommands.trigger("Sanitize", {});
}, window);
var messageHistory = { // {{{
var messageHistory = { //{{{
_messages: [],
get messages()
{
@@ -83,7 +83,7 @@ function CommandLine() //{{{
this._messages.push(message);
}
}; // }}}
}; //}}}
var lastMowOutput = null;
var silent = false;
@@ -97,7 +97,7 @@ function CommandLine() //{{{
* @param {HTMLInputElement} inputField
* @param {string} mode The mode for which we need history.
*/
function History(inputField, mode) // {{{
function History(inputField, mode) //{{{
{
if (!(this instanceof arguments.callee))
return new arguments.callee(inputField, mode);
@@ -220,14 +220,14 @@ function CommandLine() //{{{
}
}
}
}; // }}}
}; //}}}
/**
* A class for tab completions on an input field.
*
* @param {Object} input
*/
function Completions(input) // {{{
function Completions(input) //{{{
{
if (!(this instanceof arguments.callee))
return new arguments.callee(input);
@@ -511,7 +511,7 @@ function CommandLine() //{{{
if (this.items.length == 0)
liberator.beep();
}
}; // }}}
}; //}}}
/////////////////////////////////////////////////////////////////////////////}}}
////////////////////// TIMERS //////////////////////////////////////////////////