1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-12 18:25: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

@@ -291,7 +291,7 @@ CompletionContext.prototype = {
set completions(items)
{
// Accept a generator
if (!("length" in items))
if ({}.toString.call(items) != '[object Array]')
items = [x for (x in Iterator(items))];
delete this.cache.filtered;
delete this.cache.filter;
@@ -1454,6 +1454,18 @@ function Completion() //{{{
});
},
charset: function(context) {
context.anchored = false;
context.generate = function() {
let names = util.Array(
'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')]);
};
},
colorScheme: function colorScheme(context)
{
let colors = [];