From ab3bc66bc0e31e59da1f1e064dfda4886942d6a7 Mon Sep 17 00:00:00 2001 From: "allan%beaufour.dk" Date: Tue, 23 Aug 2005 11:04:36 +0000 Subject: [PATCH] [XForms] Remove binding-exception from setindex. Bug 293436, r=aaronr+smaug --- extensions/xforms/nsXFormsSetIndexElement.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/extensions/xforms/nsXFormsSetIndexElement.cpp b/extensions/xforms/nsXFormsSetIndexElement.cpp index 6a13ee9f1e1..11e3e991bbd 100644 --- a/extensions/xforms/nsXFormsSetIndexElement.cpp +++ b/extensions/xforms/nsXFormsSetIndexElement.cpp @@ -102,9 +102,7 @@ nsXFormsSetIndexElement::HandleAction(nsIDOMEvent *aEvent, if (!result) { nsXFormsUtils::ReportError(NS_LITERAL_STRING("indexEvalError"), mElement); - // beaufour: This makes sense, but is not according to the spec. I guess... - nsXFormsUtils::DispatchEvent(mElement, eEvent_BindingException); - return NS_ERROR_ABORT; + return NS_OK; } double indexDoub; rv = result->GetNumberValue(&indexDoub); @@ -128,9 +126,7 @@ nsXFormsSetIndexElement::HandleAction(nsIDOMEvent *aEvent, const PRUnichar *strings[] = { id.get(), repeatStr.get() }; nsXFormsUtils::ReportError(NS_LITERAL_STRING("idRefError"), strings, 2, mElement, mElement); - // beaufour: This makes sense, but is not according to the spec. I guess... - nsXFormsUtils::DispatchEvent(mElement, eEvent_BindingException); - return NS_ERROR_ABORT; + return NS_OK; } // Set the index = |indexInt|