mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 10:08:00 +01:00
declare var in javascript#objectKeys
This commit is contained in:
@@ -533,7 +533,7 @@ function Completion() //{{{
|
|||||||
compl.push(["wrappedJSObject", obj]);
|
compl.push(["wrappedJSObject", obj]);
|
||||||
// Parse keys for sorting
|
// Parse keys for sorting
|
||||||
compl.forEach(function (item) {
|
compl.forEach(function (item) {
|
||||||
key = item[0];
|
let key = item[0];
|
||||||
if (!isNaN(key))
|
if (!isNaN(key))
|
||||||
key = parseInt(key);
|
key = parseInt(key);
|
||||||
else if (/^[A-Z_]+$/.test(key))
|
else if (/^[A-Z_]+$/.test(key))
|
||||||
|
|||||||
Reference in New Issue
Block a user