src/command/Menus.js
function removeMenuItemEventListeners(menuItem) {
        menuItem._command
            .off("enabledStateChange", menuItem._enabledChanged)
            .off("checkedStateChange", menuItem._checkedChanged)
            .off("nameChange", menuItem._nameChanged)
            .off("keyBindingAdded", menuItem._keyBindingAdded)
            .off("keyBindingRemoved", menuItem._keyBindingRemoved);
    }
function removeMenuItemEventListeners(menuItem) {
        menuItem._command
            .off("enabledStateChange", menuItem._enabledChanged)
            .off("checkedStateChange", menuItem._checkedChanged)
            .off("nameChange", menuItem._nameChanged)
            .off("keyBindingAdded", menuItem._keyBindingAdded)
            .off("keyBindingRemoved", menuItem._keyBindingRemoved);
    }
function removeMenuItemEventListeners ( menuItem ) { menuItem . _command . off ( "enabledStateChange" , menuItem . _enabledChanged ) . off ( "checkedStateChange" , menuItem . _checkedChanged ) . off ( "nameChange" , menuItem . _nameChanged ) . off ( "keyBindingAdded" , menuItem . _keyBindingAdded ) . off ( "keyBindingRemoved" , menuItem . _keyBindingRemoved ) ; }
Removes the attached event listeners from the corresponding object.
@param {ManuItem} menuItem
Removes the attached event listeners from the corresponding object .