[XForms] Events on load regression fix. Bug 329633, r=smaug+aaronr

This commit is contained in:
allan%beaufour.dk 2006-04-27 08:42:27 +00:00
Родитель 3f2ce53374
Коммит 4348684138
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -1059,8 +1059,9 @@ nsXFormsModelElement::SetStates(nsIXFormsControl *aControl,
NS_ENSURE_SUCCESS(rv, rv);
// Event dispatching is defined by the bound node, so if there's no bound
// node, there are no events to send.
if (!ns)
// node, there are no events to send. xforms-ready also needs to be handled,
// because these events are not sent before that.
if (!ns || !mReadyHandled)
return NS_OK;
if (ns->ShouldDispatchValid()) {