From 102e24761189306fdf6233481ada43e99a56b5e7 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 12 Jul 2005 06:39:36 +0000 Subject: r8354: work around a js bug found by tpot (This used to be commit c6f7ace3333af31bc0d37264b3d8a75c79bb88e4) --- swat/scripting/common.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'swat') diff --git a/swat/scripting/common.js b/swat/scripting/common.js index cdf18d1c9b..2e90c1b469 100644 --- a/swat/scripting/common.js +++ b/swat/scripting/common.js @@ -100,10 +100,11 @@ function display_menu(m) { } function simple_menu() { - var m = MenuObj(arguments[0], (arguments.length-1)/2); + var i, m = MenuObj(arguments[0], (arguments.length-1)/2); for (i=0;i