fix for 31267. call oncreate handler for the help menu as well. r=don, a=jar.

This commit is contained in:
pinkerton%netscape.com 2000-03-10 00:28:32 +00:00
parent dd79cc915b
commit 8dd96dfa11

View File

@ -814,6 +814,9 @@ nsEventStatus nsMenu::HelpMenuConstruct(
unsigned short menuIndex = 0;
// Fire our oncreate handler. If we're told to stop, don't build the menu at all
PRBool keepProcessing = OnCreate();
if ( keepProcessing ) {
while (menuitemNode) {
nsCOMPtr<nsIDOMElement> menuitemElement(do_QueryInterface(menuitemNode));
@ -840,6 +843,7 @@ nsEventStatus nsMenu::HelpMenuConstruct(
nsCOMPtr<nsIDOMNode> oldmenuitemNode(menuitemNode);
oldmenuitemNode->GetNextSibling(getter_AddRefs(menuitemNode));
} // end menu item innner loop
}
//printf(" Done building, mMenuItemVoidArray.Count() = %d \n", mMenuItemVoidArray.Count());