Lines Matching refs:attrs
53 init: function(menu, attrs, model) {
55 this.attrs = attrs;
56 if (this.attrs.font) {
57 this.style.font = attrs.font;
60 if (attrs.command_id == menu.config_.IDC_COPY) {
126 if (this.attrs.font) {
127 this.label_.style.font = this.attrs.font;
128 this.cut_.style.font = this.attrs.font;
149 init: function(menu, attrs, model) {
151 this.attrs = attrs;
153 if (attrs.command_id == menu.config_.IDC_ZOOM_PLUS) {
156 if (this.attrs.font) {
157 this.style.font = attrs.font;
167 this.attrs.command_id == this.menu_.config_.IDC_ZOOM_PLUS ?
219 this.attrs.enabled = params.plus;
225 this.attrs.enabled = params.minus;
255 if (this.attrs.font) {
256 this.label_.style.font = this.attrs.font;
257 this.minus_.style.font = this.attrs.font;
258 this.percent_.style.font = this.attrs.font;
281 * Create a MenuItem for given {@code attrs}.
284 createMenuItem: function(attrs) {
285 switch(attrs.command_id) {