summaryrefslogtreecommitdiff
path: root/common/content/buffer.js
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2009-04-15 16:31:32 -0400
committerKris Maglione <maglione.k@gmail.com>2009-04-15 16:31:32 -0400
commitf3f70d5cb8ebc4a96a27baeee9e388d0a8cd9bd5 (patch)
treeb5548fdbf0d26299e993be9a1723d00a2c9c9200 /common/content/buffer.js
parentdf5b66d838b9bbb1fca0cbd61f4536595a9b2287 (diff)
downloadpentadactyl-f3f70d5cb8ebc4a96a27baeee9e388d0a8cd9bd5.tar.gz
General cleanup related to last commit.
Diffstat (limited to 'common/content/buffer.js')
-rw-r--r--common/content/buffer.js16
1 files changed, 3 insertions, 13 deletions
diff --git a/common/content/buffer.js b/common/content/buffer.js
index fd8f11de..c65bf311 100644
--- a/common/content/buffer.js
+++ b/common/content/buffer.js
@@ -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
{