mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Prevent scope error when using timeout with setfocus in textbox, fix by neil@parkwaycc.co.uk, b=125346, r=cmanske, sr=kin
This commit is contained in:
parent
5aa65e3ac5
commit
a48a59354d
@ -220,7 +220,8 @@ function SetTextboxFocus(textbox)
|
||||
{
|
||||
// Until .select works for editable menulist, lets just set focus
|
||||
//XXX Using the setTimeout is hacky workaround for bug 103197
|
||||
setTimeout("textbox.focus()", 1);
|
||||
// Must create a new function to keep "textbox" in scope
|
||||
setTimeout( function(textbox) { textbox.focus(); }, 0, textbox );
|
||||
/*
|
||||
// Select entire contents
|
||||
if (textbox.value.length > 0)
|
||||
|
Loading…
Reference in New Issue
Block a user