diff --git a/content/completion.js b/content/completion.js index 20794dec..b51cd11a 100644 --- a/content/completion.js +++ b/content/completion.js @@ -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"]; diff --git a/content/muttator.js b/content/muttator.js index 3b8f4186..86e068b5 100644 --- a/content/muttator.js +++ b/content/muttator.js @@ -151,7 +151,7 @@ liberator.config = { ["Q", "ZQ"], "Force closing composer", function () { MsgComposeCloseWindow(true); /* cache window for better performance*/ }); - var stateListener = + var stateListener = { QueryInterface: function (aIID) { @@ -169,7 +169,7 @@ liberator.config = { window.messageWasEditedExternally = true; liberator.editor.editWithExternalEditor(); } - + }, NotifyDocumentCreated: function () { }, NotifyDocumentWillBeDestroyed: function () { } @@ -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);*/ diff --git a/content/vimperator.js b/content/vimperator.js index f58b6e8e..a838bff1 100644 --- a/content/vimperator.js +++ b/content/vimperator.js @@ -360,7 +360,7 @@ liberator.config = { //{{{ "Set the 'work offline' option", "boolean", true, { - setter: function (value) + setter: function (value) { var ioService = Components.classes['@mozilla.org/network/io-service;1']. getService(Components.interfaces.nsIIOService2);