mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 08:38:00 +01:00
whitespace fixes
This commit is contained in:
@@ -996,7 +996,7 @@ function QuickMarks() //{{{
|
||||
}
|
||||
}
|
||||
|
||||
let items = ({title: mark, url: qmarks.get(mark)} for each (mark in marks));
|
||||
let items = ({ title: mark, url: qmarks.get(mark) } for each (mark in marks));
|
||||
let list = template.bookmarks("QuickMark", items);
|
||||
commandline.echo(list, commandline.HL_NORMAL, commandline.FORCE_MULTILINE);
|
||||
}
|
||||
|
||||
@@ -479,7 +479,7 @@ function Completion() //{{{
|
||||
completer = obj[func].liberatorCompleter;
|
||||
}
|
||||
catch (e) {}
|
||||
liberator.dump({call: completer, func: func, obj: obj, string: string, args: "args"});
|
||||
liberator.dump({ call: completer, func: func, obj: obj, string: string, args: "args" });
|
||||
if (!completer)
|
||||
return [0, []];
|
||||
|
||||
|
||||
@@ -157,7 +157,7 @@ function AutoCommands() //{{{
|
||||
if (!autocommands.get(event).some(function (c) c.pattern.test(url)))
|
||||
liberator.echo("No matching autocommands");
|
||||
else
|
||||
autocommands.trigger(event, {url: url});
|
||||
autocommands.trigger(event, { url: url });
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -187,7 +187,7 @@ function AutoCommands() //{{{
|
||||
liberator.log("DEPRECATED: the events list arg to autocommands.add() should be an array of event names");
|
||||
}
|
||||
events.forEach(function (event)
|
||||
store.push({event: event, pattern: RegExp(regex), command: cmd}));
|
||||
store.push({ event: event, pattern: RegExp(regex), command: cmd }));
|
||||
},
|
||||
|
||||
get: function (event, regex)
|
||||
@@ -862,7 +862,7 @@ function Events() //{{{
|
||||
var wasFeeding = this.feedingKeys;
|
||||
this.feedingKeys = true;
|
||||
var wasSilent = commandline.silent;
|
||||
if(silent)
|
||||
if (silent)
|
||||
commandline.silent = silent;
|
||||
|
||||
try
|
||||
@@ -937,7 +937,7 @@ function Events() //{{{
|
||||
finally
|
||||
{
|
||||
this.feedingKeys = wasFeeding;
|
||||
if(silent)
|
||||
if (silent)
|
||||
commandline.silent = wasSilent;
|
||||
}
|
||||
return i == keys.length;
|
||||
@@ -1513,7 +1513,7 @@ function Events() //{{{
|
||||
buffer.loaded = 0;
|
||||
statusline.updateProgress(0);
|
||||
|
||||
autocommands.trigger("PageLoadPre", {url: buffer.URL});
|
||||
autocommands.trigger("PageLoadPre", { url: buffer.URL });
|
||||
|
||||
// don't reset mode if a frame of the frameset gets reloaded which
|
||||
// is not the focused frame
|
||||
@@ -1555,7 +1555,7 @@ function Events() //{{{
|
||||
statusline.updateUrl();
|
||||
statusline.updateProgress();
|
||||
|
||||
autocommands.trigger("LocationChange", {url: buffer.URL});
|
||||
autocommands.trigger("LocationChange", { url: buffer.URL });
|
||||
|
||||
// if this is not delayed we get the position of the old buffer
|
||||
setTimeout(function () { statusline.updateBufferPosition(); }, 100);
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
|
||||
var loader = Components.classes["@mozilla.org/moz/jssubscript-loader;1"]
|
||||
.getService(Components.interfaces.mozIJSSubScriptLoader);
|
||||
function load(script) {
|
||||
function load(script)
|
||||
{
|
||||
try
|
||||
{
|
||||
loader.loadSubScript(BASE + script, modules)
|
||||
@@ -42,3 +43,4 @@
|
||||
|
||||
})()
|
||||
|
||||
// vim: set fdm=marker sw=4 ts=4 et:
|
||||
|
||||
@@ -54,7 +54,7 @@ function Mail() //{{{
|
||||
if (folder)
|
||||
{
|
||||
var msgFolder = folder.QueryInterface(Components.interfaces.nsIMsgFolder);
|
||||
autocommands.trigger("FolderLoaded", {url: msgFolder});
|
||||
autocommands.trigger("FolderLoaded", { url: msgFolder });
|
||||
|
||||
// Jump to a message when requested
|
||||
var indices = [];
|
||||
|
||||
@@ -554,7 +554,7 @@ function CommandLine() //{{{
|
||||
get silent() silent,
|
||||
set silent(val) {
|
||||
silent = val;
|
||||
if(silent)
|
||||
if (silent)
|
||||
storage.styles.addSheet("silent-mode", "chrome://*", "#liberator-commandline > * { opacity: 0 }", true, true);
|
||||
else
|
||||
storage.styles.removeSheet("silent-mode", null, null, null, true);
|
||||
|
||||
Reference in New Issue
Block a user