1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-08 10:45:46 +01:00

General cleanup related to last commit.

This commit is contained in:
Kris Maglione
2009-04-15 16:31:32 -04:00
parent df5b66d838
commit f3f70d5cb8
9 changed files with 129 additions and 119 deletions

View File

@@ -101,7 +101,7 @@ function Buffer() //{{{
if (win.scrollMaxX > 0 || win.scrollMaxY > 0)
return win;
for (let frame in util.Array.iterator(win.frames))
for (let frame in util.Array.itervalues(win.frames))
if (frame.scrollMaxX > 0 || frame.scrollMaxY > 0)
return frame;
@@ -174,17 +174,7 @@ function Buffer() //{{{
}
catch (e) { liberator.reportError(e) }
},
completer: function(context) {
context.anchored = false;
context.generate = function() {
let names = util.Array.uniq(
util.Array.flatten(
'more1 more2 more3 more4 more5 unicode'.split(' ').map(function(key)
options.getPref('intl.charsetmenu.browser.' + key).split(', '))));
let bundle = document.getElementById('liberator-charset-bundle');
return names.map(function(name) [name, bundle.getString(name.toLowerCase() + '.title')])
};
}
completer: function(context) completion.charset(context)
});
// FIXME: Most certainly belongs elsewhere.
@@ -803,7 +793,7 @@ function Buffer() //{{{
const ACCESS_READ = Ci.nsICache.ACCESS_READ;
let cacheKey = doc.location.toString().replace(/#.*$/, "");
for (let proto in util.Array.iterator(["HTTP", "FTP"]))
for (let proto in util.Array.itervalues(["HTTP", "FTP"]))
{
try
{