lib/bundle.js
/**
 * Initialize a menu item from a common options object.
 */
Initialize a menu item from a common options object.
Initialize a menu item from a common options object .
function initFromCommon(item, common) {
    if (common.type !== void 0) {
        item.type = common.type;
    }
    if (common.text !== void 0) {
        item.text = common.text;
    }
    if (common.shortcut !== void 0) {
        item.shortcut = common.shortcut;
    }
    if (common.disabled !== void 0) {
        item.disabled = common.disabled;
    }
    if (common.hidden !== void 0) {
        item.hidden = common.hidden;
    }
    if (common.checked !== void 0) {
        item.checked = common.checked;
    }
    if (common.className !== void 0) {
        item.className = common.className;
    }
    if (common.handler !== void 0) {
        item.handler = common.handler;
    }
}
function initFromCommon ( item , common ) { if ( common . type !== void 0 ) { item . type = common . type ; } if ( common . text !== void 0 ) { item . text = common . text ; } if ( common . shortcut !== void 0 ) { item . shortcut = common . shortcut ; } if ( common . disabled !== void 0 ) { item . disabled = common . disabled ; } if ( common . hidden !== void 0 ) { item . hidden = common . hidden ; } if ( common . checked !== void 0 ) { item . checked = common . checked ; } if ( common . className !== void 0 ) { item . className = common . className ; } if ( common . handler !== void 0 ) { item . handler = common . handler ; } }
Initialize a menu item from a common options object.
Initialize a menu item from a common options object .