diff --git a/common/content/buffer.js b/common/content/buffer.js
index b34edbe9..6837abbd 100644
--- a/common/content/buffer.js
+++ b/common/content/buffer.js
@@ -145,14 +145,14 @@ function Buffer() //{{{
{
return fn(val);
}
- catch(e)
+ catch (e)
{
return val
}
}
return [
- function() getBrowser().webNavigation,
- function(webNav) webNav.sessionHistory.QueryInterface(Ci.nsIWebNavigation)
+ function () getBrowser().webNavigation,
+ function (webNav) webNav.sessionHistory.QueryInterface(Ci.nsIWebNavigation)
].reduce(call, null);
}
@@ -161,8 +161,8 @@ function Buffer() //{{{
"string", "UTF-8",
{
scope: options.OPTION_SCOPE_LOCAL,
- getter: function() getBrowser().docShell.QueryInterface(Ci.nsIDocCharset).charset,
- setter: function(val)
+ getter: function () getBrowser().docShell.QueryInterface(Ci.nsIDocCharset).charset,
+ setter: function (val)
{
// Stolen from browser.jar/content/browser/browser.js, more or
// less.
@@ -174,7 +174,7 @@ function Buffer() //{{{
}
catch (e) { liberator.reportError(e) }
},
- completer: function(context) completion.charset(context)
+ completer: function (context) completion.charset(context)
});
// FIXME: Most certainly belongs elsewhere.
@@ -256,7 +256,7 @@ function Buffer() //{{{
"Stop loading",
function ()
{
- if(config.stop)
+ if (config.stop)
config.stop();
else
window.BrowserStop();
@@ -1076,7 +1076,7 @@ function Buffer() //{{{
}
else if (elemTagName == "input" && elem.getAttribute('type').toLowerCase() == "file")
{
- commandline.input("Upload file: ", function (path)
+ commandline.input("Upload file: ", function (path)
{
let file = io.getFile(path);
@@ -1195,7 +1195,7 @@ function Buffer() //{{{
}
else if (localName == "input" && elem.getAttribute('type').toLowerCase() == "file")
{
- commandline.input("Upload file: ", function (path)
+ commandline.input("Upload file: ", function (path)
{
let file = io.getFile(path);
diff --git a/common/content/completion.js b/common/content/completion.js
index 20cda4ea..14144f97 100644
--- a/common/content/completion.js
+++ b/common/content/completion.js
@@ -1454,15 +1454,16 @@ function Completion() //{{{
});
},
- charset: function(context) {
+ charset: function (context)
+ {
context.anchored = false;
- context.generate = function() {
+ context.generate = function () {
let names = util.Array(
- 'more1 more2 more3 more4 more5 unicode'.split(' ').map(function(key)
+ 'more1 more2 more3 more4 more5 unicode'.split(' ').map(function (key)
options.getPref('intl.charsetmenu.browser.' + key).split(', ')))
.flatten().uniq();
let bundle = document.getElementById('liberator-charset-bundle');
- return names.map(function(name) [name, bundle.getString(name.toLowerCase() + '.title')]);
+ return names.map(function (name) [name, bundle.getString(name.toLowerCase() + '.title')]);
};
},
diff --git a/common/content/find.js b/common/content/find.js
index bb764b77..e93425b8 100644
--- a/common/content/find.js
+++ b/common/content/find.js
@@ -234,7 +234,7 @@ function Search() //{{{
*/
clear: function ()
{
- this.spans.forEach(function (span)
+ this.spans.forEach(function (span)
{
if (span.parentNode)
{
@@ -250,7 +250,7 @@ function Search() //{{{
})
this.spans = []
},
- getSpans: function (doc) this.spans
+ getSpans: function (doc) this.spans
};
/////////////////////////////////////////////////////////////////////////////}}}
diff --git a/common/content/hints.js b/common/content/hints.js
index 4ab87bff..0b0c45ef 100644
--- a/common/content/hints.js
+++ b/common/content/hints.js
@@ -152,10 +152,10 @@ function Hints() //{{{
// Never gets here
//