From d625e03e894a5744bcd5ed2969be8dda449e08f7 Mon Sep 17 00:00:00 2001 From: Brett Zamir Date: Sat, 12 Oct 2013 00:04:22 +0000 Subject: [PATCH] Remove unnecessary eval() dependency for tooltip hiding (also removed in commented out portion) (though this commit does not convert string-based setTimeout's into function-based ones) git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2572 eee81c28-f429-11dd-99c0-75d572ba1ddd --- docs/javascript/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/javascript/main.js b/docs/javascript/main.js index efcdca96..e0376295 100644 --- a/docs/javascript/main.js +++ b/docs/javascript/main.js @@ -192,8 +192,8 @@ function ReallyShowTip(tooltipID, linkID, docX, docY) } /* else if (document.all) { - tooltip = eval("document.all['" + tooltipID + "']"); - link = eval("document.all['" + linkID + "']"); + tooltip = document.all[tooltipID]); + link = document.all[linkID]); } */ if (tooltip) @@ -250,7 +250,7 @@ function HideTip(tooltipID) if (document.getElementById) { tooltip = document.getElementById(tooltipID); } else if (document.all) - { tooltip = eval("document.all['" + tooltipID + "']"); } + { tooltip = document.all[tooltipID]; } if (tooltip) { tooltip.style.visibility = "hidden"; }