Page MenuHome GnuPG

DropdownMenuItem.js
No OneTemporary

DropdownMenuItem.js

/**
* @requires javelin-install
* javelin-dom
* @provides phabricator-menu-item
* @javelin
*/
JX.install('PhabricatorMenuItem', {
construct : function(name, action) {
this._name = name;
this._action = action;
},
members : {
_name : null,
_action : null,
render : function() {
if (this.getDisabled()) {
return JX.$N('span', this._name);
} else {
return JX.$N('a', { href : '#', meta : { item : this } }, this._name);
}
},
select : function() {
this._action();
}
},
properties : {
disabled : false
}
});

File Metadata

Mime Type
text/plain
Expires
Sun, Feb 15, 3:45 PM (11 h, 46 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
05/87/e0c2f851e777285e09a493c4ff6f

Event Timeline