mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-07 20:45:47 +01:00
Formatting fixes.
This commit is contained in:
@@ -42,7 +42,7 @@ function Buffer() //{{{
|
||||
////////////////////// PRIVATE SECTION /////////////////////////////////////////
|
||||
/////////////////////////////////////////////////////////////////////////////{{{
|
||||
|
||||
// FIXME: This doesn't belong here.
|
||||
// FIXME: This doesn't belong here.
|
||||
let mainWindowID = config.mainWindowID || "mainplayer";
|
||||
|
||||
let fontSize = util.computedStyle(document.getElementById(mainWindowID)).fontSize;
|
||||
@@ -215,12 +215,12 @@ function Buffer() //{{{
|
||||
|
||||
mappings.add(myModes, ["<C-c>"],
|
||||
"Stop loading",
|
||||
function ()
|
||||
function ()
|
||||
{
|
||||
if(config.name == "Xulmus")
|
||||
getBrowser().mCurrentBrowser.stop();
|
||||
else
|
||||
window.BrowserStop();
|
||||
window.BrowserStop();
|
||||
});
|
||||
|
||||
// scrolling
|
||||
@@ -603,12 +603,12 @@ function Buffer() //{{{
|
||||
|
||||
commands.add(["st[op]"],
|
||||
"Stop loading",
|
||||
function ()
|
||||
{
|
||||
if(config.name == "Xulmus")
|
||||
function ()
|
||||
{
|
||||
if (config.name == "Xulmus")
|
||||
getBrowser().mCurrentBrowser.stop();
|
||||
else
|
||||
window.BrowserStop();
|
||||
window.BrowserStop();
|
||||
},
|
||||
{ argCount: "0" });
|
||||
|
||||
|
||||
@@ -1381,7 +1381,7 @@ function Completion() //{{{
|
||||
completion.urls(context, tags);
|
||||
},
|
||||
|
||||
songCompletion: function songCompletion(context, args)
|
||||
songCompletion: function songCompletion(context, args)
|
||||
{
|
||||
if (args.completeArg == 0)
|
||||
context.completions = getArtists();
|
||||
|
||||
@@ -628,7 +628,7 @@ function Events() //{{{
|
||||
// return true when load successful, or false otherwise
|
||||
function waitForPageLoaded() events.waitForPageLoad();
|
||||
|
||||
// load all macros inside ~/.xulmus/macros/
|
||||
// load all macros
|
||||
// setTimeout needed since io. is loaded after events.
|
||||
setTimeout(function () {
|
||||
try
|
||||
@@ -1037,8 +1037,8 @@ function Events() //{{{
|
||||
// (i.e., cntrl codes 27--31)
|
||||
// ---
|
||||
// For more information, see:
|
||||
// [*] Vimp FAQ: http://xulmus.org/trac/wiki/Xulmus/FAQ#WhydoesntC-workforEscMacOSX
|
||||
// [*] Referenced mailing list msg: http://www.mozdev.org/pipermail/xulmus/2008-May/001548.html
|
||||
// [*] Vimp FAQ: http://vimperator.org/trac/wiki/Vimperator/FAQ#WhydoesntC-workforEscMacOSX
|
||||
// [*] Referenced mailing list msg: http://www.mozdev.org/pipermail/vimperator/2008-May/001548.html
|
||||
// [*] Mozilla bug 416227: event.charCode in keypress handler has unexpected values on Mac for Ctrl with chars in "[ ] _ \"
|
||||
// https://bugzilla.mozilla.org/show_bug.cgi?query_format=specific&order=relevance+desc&bug_status=__open__&id=416227
|
||||
// [*] Mozilla bug 432951: Ctrl+'foo' doesn't seem same charCode as Meta+'foo' on Cocoa
|
||||
@@ -1226,10 +1226,10 @@ function Events() //{{{
|
||||
}
|
||||
}
|
||||
|
||||
if(config.name == "Xulmus")
|
||||
if (config.name == "Xulmus")
|
||||
{
|
||||
// Switch to -- PLAYER -- mode for Songbird Media Player.
|
||||
if(config.isPlayerWindow)
|
||||
if (config.isPlayerWindow)
|
||||
{
|
||||
liberator.mode = modes.PLAYER;
|
||||
}
|
||||
@@ -1437,7 +1437,6 @@ function Events() //{{{
|
||||
// also fixes key navigation in combo boxes, submitting forms, etc.
|
||||
// FIXME: breaks iabbr for now --mst
|
||||
if (((config.name == "Xulmus" || config.name == "Vimperator") && liberator.mode == modes.NORMAL || liberator.mode == modes.INSERT))
|
||||
|
||||
{
|
||||
if (key == "<Return>")
|
||||
return false;
|
||||
|
||||
@@ -71,7 +71,7 @@ const liberator = (function () //{{{
|
||||
let nError = 0;
|
||||
function loadModule(name, func)
|
||||
{
|
||||
let message = "Loading module " + name + "...";
|
||||
let message = "Loading module " + name + "...";
|
||||
try
|
||||
{
|
||||
liberator.log(message, 0);
|
||||
@@ -82,10 +82,10 @@ const liberator = (function () //{{{
|
||||
catch (e)
|
||||
{
|
||||
if (nError++ == 0)
|
||||
liberator.dump("Error loading module - "+ name + "..");
|
||||
liberator.dump(e);
|
||||
liberator.dump(e.stack);
|
||||
window.toJavaScriptConsole();
|
||||
window.toJavaScriptConsole();
|
||||
liberator.dump("Error loading module - "+ name + "..");
|
||||
liberator.dump(e);
|
||||
liberator.dump(e.stack);
|
||||
liberator.reportError(e);
|
||||
}
|
||||
}
|
||||
@@ -1219,6 +1219,8 @@ const liberator = (function () //{{{
|
||||
startup: function ()
|
||||
{
|
||||
let start = Date.now();
|
||||
liberator.log("Initializing liberator object...", 0);
|
||||
|
||||
config.features = config.features || [];
|
||||
config.features.push(getPlatformFeature());
|
||||
config.defaults = config.defaults || {};
|
||||
@@ -1227,7 +1229,7 @@ const liberator = (function () //{{{
|
||||
config.mailModes = config.mailModes || [modes.NORMAL];
|
||||
// TODO: suitable defaults?
|
||||
//config.mainWidget
|
||||
//config.mainWindowID
|
||||
//config.mainWindowID
|
||||
//config.visualbellWindow
|
||||
//config.styleableChrome
|
||||
config.autocommands = config.autocommands || [];
|
||||
|
||||
@@ -66,7 +66,7 @@ function Services()
|
||||
self.add("windowMediator", "@mozilla.org/appshell/window-mediator;1", Ci.nsIWindowMediator);
|
||||
self.add("windowWatcher", "@mozilla.org/embedcomp/window-watcher;1", Ci.nsIWindowWatcher);
|
||||
self.add("bookmarks", "@mozilla.org/browser/nav-bookmarks-service;1", Ci.nsINavBookmarksService);
|
||||
|
||||
|
||||
self.addClass("file", "@mozilla.org/file/local;1", Ci.nsILocalFile);
|
||||
self.addClass("find", "@mozilla.org/embedcomp/rangefind;1", Ci.nsIFind);
|
||||
self.addClass("process", "@mozilla.org/process/util;1", Ci.nsIProcess);
|
||||
|
||||
@@ -112,7 +112,7 @@ function Tabs() //{{{
|
||||
/*
|
||||
if (config.name == "Xulmus")
|
||||
getBrowser()._strip.getElementsByClassName(
|
||||
*/
|
||||
*/
|
||||
/////////////////////////////////////////////////////////////////////////////}}}
|
||||
////////////////////// OPTIONS /////////////////////////////////////////////////
|
||||
/////////////////////////////////////////////////////////////////////////////{{{
|
||||
|
||||
@@ -568,7 +568,7 @@ function CommandLine() //{{{
|
||||
|
||||
var startHints = false; // whether we're waiting to start hints mode
|
||||
var lastSubstring = "";
|
||||
|
||||
|
||||
// the containing box for the promptWidget and commandWidget
|
||||
const commandlineWidget = document.getElementById("liberator-commandline");
|
||||
// the prompt for the current command, for example : or /. Can be blank
|
||||
@@ -577,7 +577,7 @@ function CommandLine() //{{{
|
||||
const commandWidget = document.getElementById("liberator-commandline-command");
|
||||
|
||||
const messageBox = document.getElementById("liberator-message");
|
||||
|
||||
|
||||
commandWidget.inputField.QueryInterface(Ci.nsIDOMNSEditableElement);
|
||||
messageBox.inputField.QueryInterface(Ci.nsIDOMNSEditableElement);
|
||||
|
||||
|
||||
@@ -170,7 +170,7 @@ const util = { //{{{
|
||||
*/
|
||||
computedStyle: function computedStyle(node)
|
||||
{
|
||||
while (node instanceof Text && node.parentNode)
|
||||
while (node instanceof Text && node.parentNode)
|
||||
node = node.parentNode;
|
||||
return node.ownerDocument.defaultView.getComputedStyle(node, null);
|
||||
},
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#!/bin/dash
|
||||
set -e
|
||||
|
||||
|
||||
top=$(pwd)
|
||||
jar=$1
|
||||
bases=$2
|
||||
@@ -15,7 +14,7 @@ stage="$top/${jar%.*}"
|
||||
mkdir -p $stage
|
||||
|
||||
getfiles () {
|
||||
filter="\.($(echo $1 | tr ' ' '|'))$"; shift
|
||||
filter="\.($(echo $1 | tr ' ' '|'))$"; shift
|
||||
find "$@" -not -path '*CVS*' 2>/dev/null | grep -E "$filter" || true
|
||||
}
|
||||
copytext () {
|
||||
@@ -31,12 +30,12 @@ do
|
||||
(
|
||||
set -e
|
||||
cd $base
|
||||
[ ${jar##*.} = jar ] && stage="$stage/${base##*/}"
|
||||
[ ${jar##*.} = jar ] && stage="$stage/${base##*/}"
|
||||
for dir in $dirs
|
||||
do
|
||||
for f in $(getfiles "$bin" "$dir")
|
||||
for f in $(getfiles "$bin" "$dir")
|
||||
do
|
||||
mkdir -p "$stage/${f%/*}"
|
||||
mkdir -p "$stage/${f%/*}"
|
||||
cp $f "$stage/$f"
|
||||
done
|
||||
for f in $(getfiles "$text" "$dir")
|
||||
@@ -52,7 +51,7 @@ do
|
||||
)
|
||||
done
|
||||
|
||||
cd $stage
|
||||
cd $stage
|
||||
zip -r "$top/$jar" *
|
||||
cd -
|
||||
rm -rf "$stage"
|
||||
|
||||
Reference in New Issue
Block a user