mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-12 19:15:46 +01:00
General cleanup related to last commit.
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user