1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 05:57:58 +01:00

declare var in javascript#objectKeys

This commit is contained in:
Doug Kearns
2008-11-27 14:05:15 +00:00
parent 91e5af254b
commit 2e6e7cb915

View File

@@ -533,7 +533,7 @@ function Completion() //{{{
compl.push(["wrappedJSObject", obj]);
// Parse keys for sorting
compl.forEach(function (item) {
key = item[0];
let key = item[0];
if (!isNaN(key))
key = parseInt(key);
else if (/^[A-Z_]+$/.test(key))