Convert remaining eval()-ish items in repo

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2586 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Brett Zamir
2013-10-14 00:00:40 +00:00
parent ffde8814ac
commit fc41825010

View File

@@ -173,9 +173,9 @@ function ShowTip(event, tooltipID, linkID)
var docX = event.clientX + window.pageXOffset;
var docY = event.clientY + window.pageYOffset;
var showCommand = "ReallyShowTip('" + tooltipID + "', '" + linkID + "', " + docX + ", " + docY + ")";
tooltipTimer = setTimeout(showCommand, 1000);
tooltipTimer = setTimeout(function () {
ReallyShowTip(tooltipID, linkID, docX, docY);
}, 1000);
}
function ReallyShowTip(tooltipID, linkID, docX, docY)
@@ -285,7 +285,7 @@ function NDOnResize()
{ clearTimeout(resizeTimer); };
resizeTimer = setTimeout(NDDoResize, 250);
};
}
function NDDoResize()
@@ -448,6 +448,7 @@ function SearchPanel(name, mode, resultsPath)
*/
this.OnSearchFieldChange = function()
{
var t = this;
if (this.keyTimeout)
{
clearTimeout(this.keyTimeout);
@@ -460,7 +461,9 @@ function SearchPanel(name, mode, resultsPath)
{
if (searchValue != "")
{
this.keyTimeout = setTimeout(this.name + ".Search()", this.keyTimeoutLength);
this.keyTimeout = setTimeout(function () {
t.name.Search();
}, this.keyTimeoutLength);
}
else
{
@@ -624,6 +627,7 @@ function SearchPanel(name, mode, resultsPath)
*/
this.Activate = function(isActive, ignoreDeactivateDelay)
{
var t = this;
// We want to ignore isActive being false while the results window is open.
if (isActive || (this.mode == "HTML" && this.DOMPopupSearchResultsWindow().style.display == "block"))
{
@@ -642,7 +646,9 @@ function SearchPanel(name, mode, resultsPath)
}
else if (!ignoreDeactivateDelay)
{
this.inactivateTimeout = setTimeout(this.name + ".InactivateAfterTimeout()", this.inactivateTimeoutLength);
this.inactivateTimeout = setTimeout(function () {
t.name.InactivateAfterTimeout();
}, this.inactivateTimeoutLength);
}
else
{