diff --git a/content/bookmarks.js b/content/bookmarks.js index 4d0b1d32..510698ed 100644 --- a/content/bookmarks.js +++ b/content/bookmarks.js @@ -345,7 +345,7 @@ liberator.Bookmarks = function () //{{{ getSearchEngines: function () { var searchEngines = []; - var firefoxEngines = searchService.getVisibleEngines({ }); + var firefoxEngines = searchService.getVisibleEngines({}); for (var i in firefoxEngines) { var alias = firefoxEngines[i].alias; diff --git a/content/buffer.js b/content/buffer.js index b9529bc6..6a75bc86 100644 --- a/content/buffer.js +++ b/content/buffer.js @@ -199,7 +199,7 @@ liberator.Buffer = function () //{{{ { getMarkupDocumentViewer().authorStyleDisabled = value; } - catch (e) { } + catch (e) {} }, getter: function () { @@ -207,7 +207,7 @@ liberator.Buffer = function () //{{{ { return getMarkupDocumentViewer().authorStyleDisabled; } - catch (e) { } + catch (e) {} } }); @@ -1145,7 +1145,7 @@ liberator.Buffer = function () //{{{ { cacheEntryDescriptor = ftpCacheSession.openCacheEntry(cacheKey, ACCESS_READ, false); } - catch (e) { } + catch (e) {} } var pageSize = []; // [0] bytes; [1] kbytes diff --git a/content/commands.js b/content/commands.js index 8ea368b7..1ab5c78f 100644 --- a/content/commands.js +++ b/content/commands.js @@ -129,8 +129,7 @@ liberator.Command.prototype = { return false; } -}; -//}}} +}; //}}} liberator.Commands = function () //{{{ { diff --git a/content/events.js b/content/events.js index 058bef51..8b3abf28 100644 --- a/content/events.js +++ b/content/events.js @@ -286,7 +286,7 @@ liberator.Events = function () //{{{ liberator.modes.show(); }, null); } - catch (e) { } + catch (e) {} // getBrowser().addEventListener("submit", function (event) // { @@ -727,7 +727,8 @@ liberator.Events = function () //{{{ try { getWebNavigation().stop(nsIWebNavigation.STOP_ALL); - } catch (ex) { } + } + catch (e) {} liberator.buffer.loaded = 1; // even if not a full page load, assume it did load correctly before starting the macro liberator.events.feedkeys(macros[lastMacro], true); // true -> noremap @@ -1066,7 +1067,7 @@ liberator.Events = function () //{{{ { // a simple if (selection) does not seem to work selection.collapseToStart(); } - catch (e) { } + catch (e) {} liberator.commandline.clear(); liberator.modes.reset(); @@ -1526,7 +1527,7 @@ liberator.Events = function () //{{{ { getBrowser().addProgressListener(eventManager.progressListener, Components.interfaces.nsIWebProgress.NOTIFY_ALL); } - catch(e) { } + catch (e) {} eventManager.prefObserver.register(); diff --git a/content/io.js b/content/io.js index c3364d63..4110080b 100644 --- a/content/io.js +++ b/content/io.js @@ -487,7 +487,7 @@ lookup: } } } - catch (e) { } + catch (e) {} } } diff --git a/content/liberator.js b/content/liberator.js index 7b81a806..781eec28 100644 --- a/content/liberator.js +++ b/content/liberator.js @@ -58,7 +58,7 @@ const liberator = (function () //{{{ { document.getElementById(elem).collapsed = (value.indexOf(option.toString()) < 0); } - catch (e) { } + catch (e) {} }); } }, @@ -421,7 +421,7 @@ const liberator = (function () //{{{ { document.getElementById(elem).collapsed = true; } - catch (e) { } + catch (e) {} }); } } @@ -560,7 +560,7 @@ const liberator = (function () //{{{ gDBView.selection.select(i); } } - catch (e) { } + catch (e) {} var elem = liberator.config.mainWidget || window.content; if (elem && (elem != document.commandDispatcher.focusedElement)) @@ -699,7 +699,7 @@ const liberator = (function () //{{{ liberator.echoerr("E149: Sorry, no help for " + topic); }, - globalVariables: { }, + globalVariables: {}, loadModule: function (name, func) { loadModule(name, func); }, @@ -804,7 +804,7 @@ const liberator = (function () //{{{ // v.plugins.mode = string to show on v.modes.CUSTOM // v.plugins.stop = hooked on a v.modes.reset() // v.plugins.onEvent = function triggered, on keypresses (unless ) (see events.js) - plugins: { }, + plugins: {}, // quit liberator, no matter how many tabs/windows are open quit: function (saveSession) diff --git a/content/mail.js b/content/mail.js index 1fe02218..a6020520 100644 --- a/content/mail.js +++ b/content/mail.js @@ -38,13 +38,13 @@ liberator.Mail = function () //{{{ var selectMessageReverse = false; var folderListener = { - OnItemAdded: function (parentItem, item) { }, - OnItemRemoved: function (parentItem, item) { }, - OnItemPropertyChanged: function (item, property, oldValue, newValue) { }, - OnItemIntPropertyChanged: function (item, property, oldValue, newValue) { }, - OnItemBoolPropertyChanged: function (item, property, oldValue, newValue) { }, - OnItemUnicharPropertyChanged: function (item, property, oldValue, newValue) { }, - OnItemPropertyFlagChanged: function (item, property, oldFlag, newFlag) { }, + OnItemAdded: function (parentItem, item) {}, + OnItemRemoved: function (parentItem, item) {}, + OnItemPropertyChanged: function (item, property, oldValue, newValue) {}, + OnItemIntPropertyChanged: function (item, property, oldValue, newValue) {}, + OnItemBoolPropertyChanged: function (item, property, oldValue, newValue) {}, + OnItemUnicharPropertyChanged: function (item, property, oldValue, newValue) {}, + OnItemPropertyFlagChanged: function (item, property, oldFlag, newFlag) {}, OnItemEvent: function (folder, event) { @@ -73,13 +73,13 @@ liberator.Mail = function () //{{{ } } } - /*else if (eventType == "ImapHdrDownloaded") { } - else if (eventType == "DeleteOrMoveMsgCompleted") { } - else if (eventType == "DeleteOrMoveMsgFailed") { } - else if (eventType == "AboutToCompact") { } - else if (eventType == "CompactCompleted") { } - else if (eventType == "RenameCompleted") { } - else if (eventType == "JunkStatusChanged") { }*/ + /*else if (eventType == "ImapHdrDownloaded") {} + else if (eventType == "DeleteOrMoveMsgCompleted") {} + else if (eventType == "DeleteOrMoveMsgFailed") {} + else if (eventType == "AboutToCompact") {} + else if (eventType == "CompactCompleted") {} + else if (eventType == "RenameCompleted") {} + else if (eventType == "JunkStatusChanged") {}*/ } }; diff --git a/content/mappings.js b/content/mappings.js index ffc1f480..23bed7f8 100644 --- a/content/mappings.js +++ b/content/mappings.js @@ -68,8 +68,7 @@ liberator.Map.prototype = { return this.action.apply(this, args); } -}; -//}}} +}; //}}} liberator.Mappings = function () //{{{ { diff --git a/content/modes.js b/content/modes.js index 7bffc3d7..9661289c 100644 --- a/content/modes.js +++ b/content/modes.js @@ -117,7 +117,7 @@ liberator.modes = (function () //{{{ { // a simple if (selection) does not work selection.collapseToStart(); } - catch (e) { } + catch (e) {} } else liberator.editor.unselectText(); diff --git a/content/muttator.js b/content/muttator.js index 86e068b5..84cf86ab 100644 --- a/content/muttator.js +++ b/content/muttator.js @@ -26,7 +26,7 @@ the provisions above, a recipient may use your version of this file under the terms of any one of the MPL, the GPL or the LGPL. }}} ***** END LICENSE BLOCK *****/ -liberator.config = { +liberator.config = { //{{{ /*** required options, no checks done if they really exist, so be careful ***/ name: "Muttator", hostApplication: "Thunderbird", // TODO: can this be found out otherwise? gBrandBundle.getString("brandShortName"); @@ -171,8 +171,8 @@ liberator.config = { } }, - NotifyDocumentCreated: function () { }, - NotifyDocumentWillBeDestroyed: function () { } + NotifyDocumentCreated: function () {}, + NotifyDocumentWillBeDestroyed: function () {} } @@ -204,6 +204,6 @@ liberator.config = { liberator.loadModule("hints", liberator.Hints); } } -}; +}; //}}} // vim: set fdm=marker sw=4 ts=4 et: diff --git a/content/util.js b/content/util.js index 34737f4c..87a529c6 100644 --- a/content/util.js +++ b/content/util.js @@ -241,7 +241,7 @@ liberator.util = { //{{{ string += i + ": " + value + "\n"; } } - catch (e) { } + catch (e) {} return string; }, @@ -269,7 +269,7 @@ liberator.util = { //{{{ url = data.data.substring(0, dataLen.value / 2); } } - catch (ex) { } + catch (e) {} return url; },