From adf2498ce3cbfcdef69a801e0528c33f3367c78e Mon Sep 17 00:00:00 2001 From: "21@vingtetun.org" <21@vingtetun.org> Date: Wed, 25 Nov 2009 11:49:52 -0800 Subject: [PATCH] Bug 530495 - textbox.xml throw an error (line 175) if the textbox.inputField didn't exist (r=neil) --- toolkit/content/widgets/textbox.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/toolkit/content/widgets/textbox.xml b/toolkit/content/widgets/textbox.xml index 26be131890c3..2a95912f1a2f 100644 --- a/toolkit/content/widgets/textbox.xml +++ b/toolkit/content/widgets/textbox.xml @@ -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();