Fixing bug 283531. Fix confusingly named argument to nsIEventStateManager::DispatchNewEvent() that has caused confusing event handling code (also fixed) to creap into the tree. r=bzbarsky@mit.edu, sr=bryner@brianryner.com
git-svn-id: svn://10.0.0.236/trunk@170153 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -109,8 +109,8 @@ nsXFormsDispatchElement::HandleAction(nsIDOMEvent* aEvent,
|
||||
event->InitEvent(name, bubbles, cancelable);
|
||||
nsCOMPtr<nsIDOMEventTarget> targetEl = do_QueryInterface(el);
|
||||
if (targetEl) {
|
||||
PRBool cancelled;
|
||||
targetEl->DispatchEvent(event, &cancelled);
|
||||
PRBool defaultActionEnabled;
|
||||
targetEl->DispatchEvent(event, &defaultActionEnabled);
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user