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
This commit is contained in:
@@ -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"; }
|
||||
|
||||
Reference in New Issue
Block a user