]> git.proxmox.com Git - extjs.git/blame - extjs/classic/theme-triton/overrides/menu/Item.js
add extjs 6.0.1 sources
[extjs.git] / extjs / classic / theme-triton / overrides / menu / Item.js
CommitLineData
6527f429
DM
1Ext.define('Ext.theme.triton.menu.Item', {\r
2 override: 'Ext.menu.Item',\r
3 \r
4 compatibility: Ext.isIE8,\r
5 \r
6 onFocus: function(e) {\r
7 this.callParent([e]);\r
8 this.repaintIcons();\r
9 },\r
10 \r
11 onFocusLeave: function(e) {\r
12 this.callParent([e]);\r
13 this.repaintIcons();\r
14 },\r
15 \r
16 privates: {\r
17 repaintIcons: function() {\r
18 var iconEl = this.iconEl,\r
19 arrowEl = this.arrowEl,\r
20 checkEl = this.checkEl;\r
21 \r
22 if (iconEl) {\r
23 iconEl.syncRepaint();\r
24 }\r
25 \r
26 if (arrowEl) {\r
27 arrowEl.syncRepaint();\r
28 }\r
29 \r
30 if (checkEl) {\r
31 checkEl.syncRepaint();\r
32 }\r
33 }\r
34 }\r
35});\r