mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 17:32:25 +01:00
trivial formatting improvements
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -129,8 +129,7 @@ liberator.Command.prototype = {
|
||||
return false;
|
||||
}
|
||||
|
||||
};
|
||||
//}}}
|
||||
}; //}}}
|
||||
|
||||
liberator.Commands = function () //{{{
|
||||
{
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -487,7 +487,7 @@ lookup:
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (e) { }
|
||||
catch (e) {}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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 = <str> string to show on v.modes.CUSTOM
|
||||
// v.plugins.stop = <func> hooked on a v.modes.reset()
|
||||
// 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: function (saveSession)
|
||||
|
||||
@@ -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") {}*/
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -68,8 +68,7 @@ liberator.Map.prototype = {
|
||||
return this.action.apply(this, args);
|
||||
}
|
||||
|
||||
};
|
||||
//}}}
|
||||
}; //}}}
|
||||
|
||||
liberator.Mappings = function () //{{{
|
||||
{
|
||||
|
||||
@@ -117,7 +117,7 @@ liberator.modes = (function () //{{{
|
||||
{ // a simple if (selection) does not work
|
||||
selection.collapseToStart();
|
||||
}
|
||||
catch (e) { }
|
||||
catch (e) {}
|
||||
}
|
||||
else
|
||||
liberator.editor.unselectText();
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user