diff options
author | Kris Maglione <kris@vimperator.org> | 2010-08-28 18:57:59 -0400 |
---|---|---|
committer | Kris Maglione <kris@vimperator.org> | 2010-08-28 18:57:59 -0400 |
commit | f1ca59a83d17236e7c38b8bfe3479406beba6000 (patch) | |
tree | 64d3f501afd4e8dcadf9726a05ee2e1e590f53e1 /common/content/autocommands.js | |
parent | 4e40abe6b0521f0a4a031a1c02889b4e1dc50d83 (diff) | |
download | pentadactyl-f1ca59a83d17236e7c38b8bfe3479406beba6000.tar.gz |
Use Object.keys/getOwnPropertyNames (and provide them if they don't exist).
Diffstat (limited to 'common/content/autocommands.js')
-rwxr-xr-x | common/content/autocommands.js | 4 |
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 != "*", |