1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 11:58:00 +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]); 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))