Prevent multiple firings of DOM click events on buttons.

git-svn-id: svn://10.0.0.236/trunk@14918 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
joki%netscape.com 1998-11-19 00:42:38 +00:00
parent af74d44f60
commit eb8fbe519b

View File

@ -248,10 +248,6 @@ nsButtonControlFrame::MouseClicked(nsIPresContext* aPresContext)
event.eventStructType = NS_EVENT;
switch(type) {
case NS_FORM_INPUT_BUTTON:
event.message = NS_MOUSE_LEFT_CLICK;
mContent->HandleDOMEvent(*aPresContext, &event, nsnull, DOM_EVENT_INIT, status);
break;
case NS_FORM_INPUT_RESET:
event.message = NS_FORM_RESET;
mContent->HandleDOMEvent(*aPresContext, &event, nsnull, DOM_EVENT_INIT, status);