Language: JavaScript
Label: vulnerable
CWE: CWE-400 \u2014 Uncontrolled Resource Consumption
The product does not properly control the allocation and maintenance of a limited resource, thereby enabling an actor to influence the amount of resources consumed, eventually leading to the exhaustion of available resources.

Code:
Menus.prototype.menuCreated=function(a,c,f){null!=c&&(f=null!=f?f:"geItem",a.addListener("stateChanged",function(){(c.enabled=a.enabled)?(c.className=f,8==document.documentMode&&(c.style.color="")):(c.className=f+" mxDisabled",8==document.documentMode&&(c.style.color="#c3c3c3"))}))};function Menubar(a,c){this.editorUi=a;this.container=c}Menubar.prototype.hideMenu=function(){this.editorUi.hideCurrentMenu()};