Skip to content

Commit aa140eb

Browse files
fstrrkfranqueirombgower
authored
fix code sample bug (#4238)
Closes #4224 Incorrect `settime-out` replaced with `window.setTimeout`. --------- Co-authored-by: Kenneth G. Franqueiro <kfranqueiro@users.noreply.github.com> Co-authored-by: Mike Gower <mikegower@gmail.com>
1 parent 946397c commit aa140eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

techniques/failures/F50.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
// blink "on" state
1515
function show(){
1616
document.getElementById("blink1").style.visibility = "visible";
17-
settime-out("hide()", 450);
17+
window.setTimeout(hide, 450);
1818
}
1919

2020
// blink "off" state
2121
function hide(){
2222
document.getElementById("blink1").style.visibility = "hidden";
23-
settime-out("show()", 450);
23+
window.setTimeout(show, 450);
2424
}
2525

2626
// kick it off
@@ -42,4 +42,4 @@
4242
</section><section id="related"><h2>Related Techniques</h2><ul>
4343
<li><a href="../client-side-script/SCR22">SCR22</a></li>
4444
</ul></section>
45-
</body></html>
45+
</body></html>

0 commit comments

Comments
 (0)