Bug 530495 - textbox.xml throw an error (line 175) if the textbox.inputField didn't exist (r=neil)

This commit is contained in:
21@vingtetun.org 2009-11-25 11:49:52 -08:00
parent c7d187e05b
commit 0a382c6370

View File

@ -171,9 +171,9 @@
// Hide the emptytext for a bit, in case the textbox will be focused subsequently
this.inputField.setAttribute("emptytextdelay", "true");
setTimeout(function (textbox) {
textbox.inputField.removeAttribute("emptytextdelay");
}, 100, this);
setTimeout(function (input) {
input.removeAttribute("emptytextdelay");
}, 100, this.inputField);
try {
this.editor.transactionManager.beginBatch();