1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 22:02:26 +01:00

trivial formatting improvements

This commit is contained in:
Doug Kearns
2008-08-12 16:16:24 +00:00
parent 50f025553a
commit 66ff19d7af
11 changed files with 38 additions and 39 deletions

View File

@@ -345,7 +345,7 @@ liberator.Bookmarks = function () //{{{
getSearchEngines: function () getSearchEngines: function ()
{ {
var searchEngines = []; var searchEngines = [];
var firefoxEngines = searchService.getVisibleEngines({ }); var firefoxEngines = searchService.getVisibleEngines({});
for (var i in firefoxEngines) for (var i in firefoxEngines)
{ {
var alias = firefoxEngines[i].alias; var alias = firefoxEngines[i].alias;

View File

@@ -199,7 +199,7 @@ liberator.Buffer = function () //{{{
{ {
getMarkupDocumentViewer().authorStyleDisabled = value; getMarkupDocumentViewer().authorStyleDisabled = value;
} }
catch (e) { } catch (e) {}
}, },
getter: function () getter: function ()
{ {
@@ -207,7 +207,7 @@ liberator.Buffer = function () //{{{
{ {
return getMarkupDocumentViewer().authorStyleDisabled; return getMarkupDocumentViewer().authorStyleDisabled;
} }
catch (e) { } catch (e) {}
} }
}); });
@@ -1145,7 +1145,7 @@ liberator.Buffer = function () //{{{
{ {
cacheEntryDescriptor = ftpCacheSession.openCacheEntry(cacheKey, ACCESS_READ, false); cacheEntryDescriptor = ftpCacheSession.openCacheEntry(cacheKey, ACCESS_READ, false);
} }
catch (e) { } catch (e) {}
} }
var pageSize = []; // [0] bytes; [1] kbytes var pageSize = []; // [0] bytes; [1] kbytes

View File

@@ -129,8 +129,7 @@ liberator.Command.prototype = {
return false; return false;
} }
}; }; //}}}
//}}}
liberator.Commands = function () //{{{ liberator.Commands = function () //{{{
{ {

View File

@@ -286,7 +286,7 @@ liberator.Events = function () //{{{
liberator.modes.show(); liberator.modes.show();
}, null); }, null);
} }
catch (e) { } catch (e) {}
// getBrowser().addEventListener("submit", function (event) // getBrowser().addEventListener("submit", function (event)
// { // {
@@ -727,7 +727,8 @@ liberator.Events = function () //{{{
try try
{ {
getWebNavigation().stop(nsIWebNavigation.STOP_ALL); 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.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 liberator.events.feedkeys(macros[lastMacro], true); // true -> noremap
@@ -1066,7 +1067,7 @@ liberator.Events = function () //{{{
{ // a simple if (selection) does not seem to work { // a simple if (selection) does not seem to work
selection.collapseToStart(); selection.collapseToStart();
} }
catch (e) { } catch (e) {}
liberator.commandline.clear(); liberator.commandline.clear();
liberator.modes.reset(); liberator.modes.reset();
@@ -1526,7 +1527,7 @@ liberator.Events = function () //{{{
{ {
getBrowser().addProgressListener(eventManager.progressListener, Components.interfaces.nsIWebProgress.NOTIFY_ALL); getBrowser().addProgressListener(eventManager.progressListener, Components.interfaces.nsIWebProgress.NOTIFY_ALL);
} }
catch(e) { } catch (e) {}
eventManager.prefObserver.register(); eventManager.prefObserver.register();

View File

@@ -487,7 +487,7 @@ lookup:
} }
} }
} }
catch (e) { } catch (e) {}
} }
} }

View File

@@ -58,7 +58,7 @@ const liberator = (function () //{{{
{ {
document.getElementById(elem).collapsed = (value.indexOf(option.toString()) < 0); 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; document.getElementById(elem).collapsed = true;
} }
catch (e) { } catch (e) {}
}); });
} }
} }
@@ -560,7 +560,7 @@ const liberator = (function () //{{{
gDBView.selection.select(i); gDBView.selection.select(i);
} }
} }
catch (e) { } catch (e) {}
var elem = liberator.config.mainWidget || window.content; var elem = liberator.config.mainWidget || window.content;
if (elem && (elem != document.commandDispatcher.focusedElement)) if (elem && (elem != document.commandDispatcher.focusedElement))
@@ -699,7 +699,7 @@ const liberator = (function () //{{{
liberator.echoerr("E149: Sorry, no help for " + topic); liberator.echoerr("E149: Sorry, no help for " + topic);
}, },
globalVariables: { }, globalVariables: {},
loadModule: function (name, func) { loadModule(name, func); }, loadModule: function (name, func) { loadModule(name, func); },
@@ -804,7 +804,7 @@ const liberator = (function () //{{{
// v.plugins.mode = <str> string to show on v.modes.CUSTOM // v.plugins.mode = <str> string to show on v.modes.CUSTOM
// v.plugins.stop = <func> hooked on a v.modes.reset() // v.plugins.stop = <func> hooked on a v.modes.reset()
// v.plugins.onEvent = <func> function triggered, on keypresses (unless <esc>) (see events.js) // v.plugins.onEvent = <func> function triggered, on keypresses (unless <esc>) (see events.js)
plugins: { }, plugins: {},
// quit liberator, no matter how many tabs/windows are open // quit liberator, no matter how many tabs/windows are open
quit: function (saveSession) quit: function (saveSession)

View File

@@ -38,13 +38,13 @@ liberator.Mail = function () //{{{
var selectMessageReverse = false; var selectMessageReverse = false;
var folderListener = { var folderListener = {
OnItemAdded: function (parentItem, item) { }, OnItemAdded: function (parentItem, item) {},
OnItemRemoved: function (parentItem, item) { }, OnItemRemoved: function (parentItem, item) {},
OnItemPropertyChanged: function (item, property, oldValue, newValue) { }, OnItemPropertyChanged: function (item, property, oldValue, newValue) {},
OnItemIntPropertyChanged: function (item, property, oldValue, newValue) { }, OnItemIntPropertyChanged: function (item, property, oldValue, newValue) {},
OnItemBoolPropertyChanged: function (item, property, oldValue, newValue) { }, OnItemBoolPropertyChanged: function (item, property, oldValue, newValue) {},
OnItemUnicharPropertyChanged: function (item, property, oldValue, newValue) { }, OnItemUnicharPropertyChanged: function (item, property, oldValue, newValue) {},
OnItemPropertyFlagChanged: function (item, property, oldFlag, newFlag) { }, OnItemPropertyFlagChanged: function (item, property, oldFlag, newFlag) {},
OnItemEvent: function (folder, event) OnItemEvent: function (folder, event)
{ {
@@ -73,13 +73,13 @@ liberator.Mail = function () //{{{
} }
} }
} }
/*else if (eventType == "ImapHdrDownloaded") { } /*else if (eventType == "ImapHdrDownloaded") {}
else if (eventType == "DeleteOrMoveMsgCompleted") { } else if (eventType == "DeleteOrMoveMsgCompleted") {}
else if (eventType == "DeleteOrMoveMsgFailed") { } else if (eventType == "DeleteOrMoveMsgFailed") {}
else if (eventType == "AboutToCompact") { } else if (eventType == "AboutToCompact") {}
else if (eventType == "CompactCompleted") { } else if (eventType == "CompactCompleted") {}
else if (eventType == "RenameCompleted") { } else if (eventType == "RenameCompleted") {}
else if (eventType == "JunkStatusChanged") { }*/ else if (eventType == "JunkStatusChanged") {}*/
} }
}; };

View File

@@ -68,8 +68,7 @@ liberator.Map.prototype = {
return this.action.apply(this, args); return this.action.apply(this, args);
} }
}; }; //}}}
//}}}
liberator.Mappings = function () //{{{ liberator.Mappings = function () //{{{
{ {

View File

@@ -117,7 +117,7 @@ liberator.modes = (function () //{{{
{ // a simple if (selection) does not work { // a simple if (selection) does not work
selection.collapseToStart(); selection.collapseToStart();
} }
catch (e) { } catch (e) {}
} }
else else
liberator.editor.unselectText(); liberator.editor.unselectText();

View File

@@ -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. the terms of any one of the MPL, the GPL or the LGPL.
}}} ***** END LICENSE BLOCK *****/ }}} ***** END LICENSE BLOCK *****/
liberator.config = { liberator.config = { //{{{
/*** required options, no checks done if they really exist, so be careful ***/ /*** required options, no checks done if they really exist, so be careful ***/
name: "Muttator", name: "Muttator",
hostApplication: "Thunderbird", // TODO: can this be found out otherwise? gBrandBundle.getString("brandShortName"); hostApplication: "Thunderbird", // TODO: can this be found out otherwise? gBrandBundle.getString("brandShortName");
@@ -171,8 +171,8 @@ liberator.config = {
} }
}, },
NotifyDocumentCreated: function () { }, NotifyDocumentCreated: function () {},
NotifyDocumentWillBeDestroyed: function () { } NotifyDocumentWillBeDestroyed: function () {}
} }
@@ -204,6 +204,6 @@ liberator.config = {
liberator.loadModule("hints", liberator.Hints); liberator.loadModule("hints", liberator.Hints);
} }
} }
}; }; //}}}
// vim: set fdm=marker sw=4 ts=4 et: // vim: set fdm=marker sw=4 ts=4 et:

View File

@@ -241,7 +241,7 @@ liberator.util = { //{{{
string += i + ": " + value + "\n"; string += i + ": " + value + "\n";
} }
} }
catch (e) { } catch (e) {}
return string; return string;
}, },
@@ -269,7 +269,7 @@ liberator.util = { //{{{
url = data.data.substring(0, dataLen.value / 2); url = data.data.substring(0, dataLen.value / 2);
} }
} }
catch (ex) { } catch (e) {}
return url; return url;
}, },