src/command/DefaultMenus.js
function _setContextMenuItemsVisible(enabled, items) {
        items.forEach(function (item) {
            CommandManager.get(item).setEnabled(enabled);
        });
    }
function _setContextMenuItemsVisible(enabled, items) {
        items.forEach(function (item) {
            CommandManager.get(item).setEnabled(enabled);
        });
    }
function _setContextMenuItemsVisible ( enabled , items ) { items . forEach ( function ( item ) { CommandManager . get ( item ) . setEnabled ( enabled ) ; } ) ; }
Disables menu items present in items if enabled is true.
enabled is true if file is saved and present on user system.
@param {boolean} enabled
@param {array} items
Disables menu items present in items if enabled is true . enabled is true if file is saved and present on user system .