mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 09:17:59 +01:00
whitespace formatting fixes
This commit is contained in:
@@ -290,7 +290,7 @@ liberator.Completion = function () //{{{
|
|||||||
var stylesheets = getAllStyleSheets(window.content);
|
var stylesheets = getAllStyleSheets(window.content);
|
||||||
|
|
||||||
// TODO: how should we handle duplicate titles?
|
// TODO: how should we handle duplicate titles?
|
||||||
stylesheets = stylesheets.filter(function(stylesheet) {
|
stylesheets = stylesheets.filter(function (stylesheet) {
|
||||||
return !(!/^(screen|all|)$/i.test(stylesheet.media.mediaText) || /^\s*$/.test(stylesheet.title))
|
return !(!/^(screen|all|)$/i.test(stylesheet.media.mediaText) || /^\s*$/.test(stylesheet.title))
|
||||||
}).map(function (stylesheet) {
|
}).map(function (stylesheet) {
|
||||||
return [stylesheet.title, stylesheet.href || "inline"];
|
return [stylesheet.title, stylesheet.href || "inline"];
|
||||||
|
|||||||
@@ -151,7 +151,7 @@ liberator.config = {
|
|||||||
["Q", "ZQ"], "Force closing composer",
|
["Q", "ZQ"], "Force closing composer",
|
||||||
function () { MsgComposeCloseWindow(true); /* cache window for better performance*/ });
|
function () { MsgComposeCloseWindow(true); /* cache window for better performance*/ });
|
||||||
|
|
||||||
var stateListener =
|
var stateListener =
|
||||||
{
|
{
|
||||||
QueryInterface: function (aIID)
|
QueryInterface: function (aIID)
|
||||||
{
|
{
|
||||||
@@ -169,7 +169,7 @@ liberator.config = {
|
|||||||
window.messageWasEditedExternally = true;
|
window.messageWasEditedExternally = true;
|
||||||
liberator.editor.editWithExternalEditor();
|
liberator.editor.editWithExternalEditor();
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
NotifyDocumentCreated: function () { },
|
NotifyDocumentCreated: function () { },
|
||||||
NotifyDocumentWillBeDestroyed: function () { }
|
NotifyDocumentWillBeDestroyed: function () { }
|
||||||
@@ -177,7 +177,7 @@ liberator.config = {
|
|||||||
|
|
||||||
|
|
||||||
// XXX: Hack!
|
// XXX: Hack!
|
||||||
window.document.addEventListener("load", function()
|
window.document.addEventListener("load", function ()
|
||||||
{
|
{
|
||||||
if (typeof(window.messageWasEditedExternally) == "undefined")
|
if (typeof(window.messageWasEditedExternally) == "undefined")
|
||||||
{
|
{
|
||||||
@@ -186,11 +186,11 @@ liberator.config = {
|
|||||||
}
|
}
|
||||||
}, true);
|
}, true);
|
||||||
|
|
||||||
window.addEventListener("compose-window-close", function()
|
window.addEventListener("compose-window-close", function ()
|
||||||
{
|
{
|
||||||
window.messageWasEditedExternally = false;
|
window.messageWasEditedExternally = false;
|
||||||
}, true);
|
}, true);
|
||||||
/*window.document.addEventListener("unload", function() {
|
/*window.document.addEventListener("unload", function () {
|
||||||
GetCurrentEditor().removeDocumentStateListener(liberator.config.stateListener);
|
GetCurrentEditor().removeDocumentStateListener(liberator.config.stateListener);
|
||||||
}, true);*/
|
}, true);*/
|
||||||
|
|
||||||
|
|||||||
@@ -360,7 +360,7 @@ liberator.config = { //{{{
|
|||||||
"Set the 'work offline' option",
|
"Set the 'work offline' option",
|
||||||
"boolean", true,
|
"boolean", true,
|
||||||
{
|
{
|
||||||
setter: function (value)
|
setter: function (value)
|
||||||
{
|
{
|
||||||
var ioService = Components.classes['@mozilla.org/network/io-service;1'].
|
var ioService = Components.classes['@mozilla.org/network/io-service;1'].
|
||||||
getService(Components.interfaces.nsIIOService2);
|
getService(Components.interfaces.nsIIOService2);
|
||||||
|
|||||||
Reference in New Issue
Block a user