From 6d28fd6107ee9872cbffb83a9f81c9e2d8b629a5 Mon Sep 17 00:00:00 2001
From: Doug Kearns
Date: Thu, 31 May 2007 11:02:33 +0000
Subject: [PATCH] add missing var declarations
---
chrome/content/vimperator/completion.js | 2 +-
chrome/content/vimperator/help.js | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/chrome/content/vimperator/completion.js b/chrome/content/vimperator/completion.js
index bbc23617..20183cba 100644
--- a/chrome/content/vimperator/completion.js
+++ b/chrome/content/vimperator/completion.js
@@ -270,7 +270,7 @@ function get_help_completions(filter)/*{{{*/
$_[1]
];
}));
- for (map in vimperator.mappings)
+ for (var map in vimperator.mappings)
help_array.push([map.commands, map.short_help])
if (!filter) return help_array.map(function($_) {
diff --git a/chrome/content/vimperator/help.js b/chrome/content/vimperator/help.js
index 3fecdf30..d4d31f2f 100644
--- a/chrome/content/vimperator/help.js
+++ b/chrome/content/vimperator/help.js
@@ -168,10 +168,9 @@ function help(section, easter)
''
// FIXME: fix this when Command() is added and help patch is merged -- djk
var all_maps = [];
- for (map in vimperator.mappings)
+ for (var map in vimperator.mappings)
all_maps.push([map.commands, [map.usage], map.short_help, map.help])
mappings += makeHelpString(all_maps, "#102663", "", "", null);
- //mappings += makeHelpString(g_mappings, "#102663", "", "", null);
mappings += '
';
if (section && section == 'holy-grail')
mappings += 'You found it, Arthur!\n';