summaryrefslogtreecommitdiff
path: root/common/content/autocommands.js
diff options
context:
space:
mode:
authorKris Maglione <kris@vimperator.org>2010-08-28 18:57:59 -0400
committerKris Maglione <kris@vimperator.org>2010-08-28 18:57:59 -0400
commitf1ca59a83d17236e7c38b8bfe3479406beba6000 (patch)
tree64d3f501afd4e8dcadf9726a05ee2e1e590f53e1 /common/content/autocommands.js
parent4e40abe6b0521f0a4a031a1c02889b4e1dc50d83 (diff)
downloadpentadactyl-f1ca59a83d17236e7c38b8bfe3479406beba6000.tar.gz
Use Object.keys/getOwnPropertyNames (and provide them if they don't exist).
Diffstat (limited to 'common/content/autocommands.js')
-rwxr-xr-xcommon/content/autocommands.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/content/autocommands.js b/common/content/autocommands.js
index 0e163b5c..fd9f4e0f 100755
--- a/common/content/autocommands.js
+++ b/common/content/autocommands.js
@@ -167,7 +167,7 @@ const AutoCommands = Module("autocommands", {
if (event) {
// NOTE: event can only be a comma separated list for |:au {event} {pat} {cmd}|
- let validEvents = keys(config.autocommands);
+ let validEvents = Object.keys(config.autocommands);
validEvents.push("*");
events = event.split(",");
@@ -227,7 +227,7 @@ const AutoCommands = Module("autocommands", {
let [event, url] = args;
let defaultURL = url || buffer.URL;
- let validEvents = keys(config.autocommands);
+ let validEvents = Object.keys(config.autocommands);
// TODO: add command validators
dactyl.assert(event != "*",