I have the following code, but the clear wait time does not work, and I can not understand why, does anyone have any ideas? (Using prototype infrastructure)
function foo() { $("navigation").observe('mouseover', function (event) { clearTimeout(bar); } ).observe('mouseout', function (event) { setTimeout(bar, 1000); } ); } function bar() { alert("hi"); }
javascript prototypejs javascript-events dom-events
Rich
source share