extjs-gpl
Version:
GPL licensed version of Sencha Ext JS
36 lines (28 loc) • 781 B
JavaScript
Ext.define('Ext.theme.triton.menu.Item', {
override: 'Ext.menu.Item',
compatibility: Ext.isIE8,
onFocus: function(e) {
this.callParent([e]);
this.repaintIcons();
},
onFocusLeave: function(e) {
this.callParent([e]);
this.repaintIcons();
},
privates: {
repaintIcons: function() {
var iconEl = this.iconEl,
arrowEl = this.arrowEl,
checkEl = this.checkEl;
if (iconEl) {
iconEl.syncRepaint();
}
if (arrowEl) {
arrowEl.syncRepaint();
}
if (checkEl) {
checkEl.syncRepaint();
}
}
}
});