Item.js 781 B

1234567891011121314151617181920212223242526272829303132333435
  1. Ext.define('Ext.theme.triton.menu.Item', {
  2. override: 'Ext.menu.Item',
  3. compatibility: Ext.isIE8,
  4. onFocus: function(e) {
  5. this.callParent([e]);
  6. this.repaintIcons();
  7. },
  8. onFocusLeave: function(e) {
  9. this.callParent([e]);
  10. this.repaintIcons();
  11. },
  12. privates: {
  13. repaintIcons: function() {
  14. var iconEl = this.iconEl,
  15. arrowEl = this.arrowEl,
  16. checkEl = this.checkEl;
  17. if (iconEl) {
  18. iconEl.syncRepaint();
  19. }
  20. if (arrowEl) {
  21. arrowEl.syncRepaint();
  22. }
  23. if (checkEl) {
  24. checkEl.syncRepaint();
  25. }
  26. }
  27. }
  28. });