mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 13:52:26 +01:00
whitespace formatting fixes
This commit is contained in:
@@ -290,7 +290,7 @@ liberator.Completion = function () //{{{
|
||||
var stylesheets = getAllStyleSheets(window.content);
|
||||
|
||||
// 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))
|
||||
}).map(function (stylesheet) {
|
||||
return [stylesheet.title, stylesheet.href || "inline"];
|
||||
|
||||
@@ -177,7 +177,7 @@ liberator.config = {
|
||||
|
||||
|
||||
// XXX: Hack!
|
||||
window.document.addEventListener("load", function()
|
||||
window.document.addEventListener("load", function ()
|
||||
{
|
||||
if (typeof(window.messageWasEditedExternally) == "undefined")
|
||||
{
|
||||
@@ -186,11 +186,11 @@ liberator.config = {
|
||||
}
|
||||
}, true);
|
||||
|
||||
window.addEventListener("compose-window-close", function()
|
||||
window.addEventListener("compose-window-close", function ()
|
||||
{
|
||||
window.messageWasEditedExternally = false;
|
||||
}, true);
|
||||
/*window.document.addEventListener("unload", function() {
|
||||
/*window.document.addEventListener("unload", function () {
|
||||
GetCurrentEditor().removeDocumentStateListener(liberator.config.stateListener);
|
||||
}, true);*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user