Bug #108761 --> override globalEditMenuItems and selectEditMenuItems so

with our own custom event so we can reduce the amount of command updating
they were doing during message display.
r=bienvenu
sr=sspitzer
This commit is contained in:
mscott%netscape.com 2001-11-09 23:53:16 +00:00
parent 4d40d98985
commit 131a7b2d1b

View File

@ -52,6 +52,24 @@ Rights Reserved.
<stringbundle id="findBundle" src="chrome://global/locale/finddialog.properties"/>
</stringbundleset>
<!-- Performance optimization...we include utilityOverlay.xul which defines some command sets
which are updated based on events like focus and select. We have our own custom events
which we use to optmize when we do command updating. To avoid unnecessary command updating,
we are going to override the events the global edit menu items and select edit menu items
are updated on with events of our own controlling.
-->
<commandset id="globalEditMenuItems"
commandupdater="true"
events="create-menu-edit"
oncommandupdate="goUpdateGlobalEditMenuItems()"/>
<commandset id="selectEditMenuItems"
commandupdater="true"
events="create-menu-edit"
oncommandupdate="goUpdateSelectEditMenuItems()"/>
<!-- End command set merging -->
<commandset id="mailFileMenuItems"
commandupdater="true"
events="create-menu-file"