mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-04-21 23:11:25 +02:00
Fix some minor function formatting faux pas.
This commit is contained in:
@@ -149,8 +149,10 @@ function Buffer() //{{{
|
||||
////////////////////// OPTIONS /////////////////////////////////////////////////
|
||||
/////////////////////////////////////////////////////////////////////////////{{{
|
||||
|
||||
function getWebNav() {
|
||||
function call(val, fn) {
|
||||
function getWebNav()
|
||||
{
|
||||
function call(val, fn)
|
||||
{
|
||||
try
|
||||
{
|
||||
return fn(val);
|
||||
@@ -182,7 +184,7 @@ function Buffer() //{{{
|
||||
PlacesUtils.history.setCharsetForURI(getWebNavigation().currentURI, val);
|
||||
getWebNav().reload(Ci.nsIWebNavigation.LOAD_FLAGS_CHARSET_CHANGE);
|
||||
}
|
||||
catch (e) { liberator.reportError(e) }
|
||||
catch (e) { liberator.reportError(e); }
|
||||
},
|
||||
completer: function (context) completion.charset(context),
|
||||
validator: Option.validateCompleter
|
||||
|
||||
@@ -736,7 +736,8 @@ function IO() //{{{
|
||||
writeFile: function (file, buf, mode, perms, encoding)
|
||||
{
|
||||
let ofstream = Cc["@mozilla.org/network/file-output-stream;1"].createInstance(Ci.nsIFileOutputStream);
|
||||
function getStream(defaultChar) {
|
||||
function getStream(defaultChar)
|
||||
{
|
||||
let stream = Cc["@mozilla.org/intl/converter-output-stream;1"].createInstance(Ci.nsIConverterOutputStream);
|
||||
stream.init(ofstream, encoding, 0, defaultChar);
|
||||
return stream;
|
||||
|
||||
@@ -433,7 +433,8 @@ const util = { //{{{
|
||||
let elem = object;
|
||||
if (elem.nodeType == elem.TEXT_NODE)
|
||||
return elem.data;
|
||||
function namespaced(node) {
|
||||
function namespaced(node)
|
||||
{
|
||||
var ns = NAMESPACES[node.namespaceURI];
|
||||
if (ns)
|
||||
return ns + ":" + node.localName;
|
||||
|
||||
Reference in New Issue
Block a user