1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 08:27:59 +01:00

Formatting fixes.

This commit is contained in:
Doug Kearns
2009-03-16 16:24:09 +11:00
parent 80beaa41df
commit 1ca0bc0de4
10 changed files with 205 additions and 213 deletions

View File

@@ -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
@@ -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;

View File

@@ -82,10 +82,10 @@ const liberator = (function () //{{{
catch (e)
{
if (nError++ == 0)
window.toJavaScriptConsole();
liberator.dump("Error loading module - "+ name + "..");
liberator.dump(e);
liberator.dump(e.stack);
window.toJavaScriptConsole();
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 || {};

View File

@@ -1,7 +1,6 @@
#!/bin/dash
set -e
top=$(pwd)
jar=$1
bases=$2

View File

@@ -2,9 +2,8 @@
var artists = getArtistsArray();
function Player()
function Player() // {{{
{
// Get the focus to the visible playlist first
//window._SBShowMainLibrary();
@@ -43,7 +42,6 @@ function Player()
gMM.sequencer.stop();
});
mappings.add([modes.PLAYER],
["l"], "Play Media",
function ()
@@ -83,7 +81,7 @@ function Player()
});
commands.add(["playmedia"],
"PLay Media",
"Play Media",
function (args)
{
//Store the old view
@@ -95,7 +93,6 @@ function Player()
.createInstance(Ci.sbIMutablePropertyArray);
//args
if (args.length == 1){
customProps.appendProperty(SBProperties.artistName,args[0].toString());
}
@@ -109,18 +106,12 @@ function Player()
customProps.appendProperty(SBProperties.trackName,args[2].toString());
}
sqncr.playView(mainView, mainView.getIndexForItem(library.getItemsByProperties(customProps).queryElementAt(0,Ci.sbIMediaItem)));
},
{
completer: function (context, args) completion.songCompletion(context, args)
});
}
} // }}}
function getArtists()
{
@@ -129,7 +120,6 @@ function getArtists()
function getArtistsArray()
{
var list = LibraryUtils.mainLibrary;
// Create an enumeration listener to count each item
@@ -217,3 +207,5 @@ label:for(var i=0; i<arrayName.length;i++ )
}
return newArray;
}
// vim: set fdm=marker sw=4 ts=4 et: