Lines Matching refs:attrs
54 init: function(menu, attrs, model) { argument
58 this.attrs = attrs;
59 var attrs = this.attrs;
60 if (attrs.type == 'separator') {
62 } else if (attrs.type == 'command' ||
63 attrs.type == 'submenu' ||
64 attrs.type == 'check' ||
65 attrs.type == 'radio') {
75 if (!attrs.visible) {
98 if (this.attrs.type == 'submenu') {
100 } else if (this.attrs.type != 'separator' &&
121 var attrs = this.attrs;
122 this.className = 'menu-item ' + attrs.type;
127 this.menu_.addLabelTo(this, attrs.label, label,
130 if (attrs.font) {
131 label.style.font = attrs.font;
136 if (attrs.accel) {
139 accel.textContent = attrs.accel;
140 accel.style.font = attrs.font;
144 if (attrs.type == 'submenu') {
160 var attrs = this.attrs;
161 if (attrs.type == 'radio') {
162 url = attrs.checked ?
165 } else if (attrs.icon) {
166 url = attrs.icon;
167 } else if (attrs.type == 'check' && attrs.checked) {
335 createMenuItem: function(attrs) { argument
350 var attrs = model.items[i];
351 var item = this.createMenuItem(attrs);
352 item.init(this, attrs, model);
378 if (item.attrs.enabled) {
412 if (item.attrs.type == 'submenu') {
504 if (item.attrs.enabled && event.clientX != 0 && event.clientY != 0) {
576 if (current && current.attrs.type == 'submenu') {
601 if (item.attrs.enabled && item.attrs.type != 'separator' &&