-<html>\r
-<head>\r
- <title>The source code</title>\r
- <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />\r
- <script type="text/javascript" src="../resources/prettify/prettify.js"></script>\r
-</head>\r
-<body onload="prettyPrint();">\r
+<html>
+<head>
+ <title>The source code</title>
+ <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
+ <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
+</head>
+<body onload="prettyPrint();">
<pre class="prettyprint lang-js">(function(){\r
Ext.ns('Ext.a11y');\r
\r
\r
getFocusItems: function(){\r
return this.items &&\r
- this.items.filterBy(function(o){\r
- return o.isFocusable;\r
- }) ||\r
- null;\r
+ this.items.filterBy(function(o){\r
+ return o.isFocusable;\r
+ }) ||\r
+ null;\r
},\r
\r
getEnterItem: function(){\r
if (length === 1) {\r
return ci.first().getEnterItem && ci.first().getEnterItem() || ci.first();\r
}\r
- else \r
- if (length > 1) {\r
- return ci.first();\r
- }\r
+ else if (length > 1) {\r
+ return ci.first();\r
+ }\r
},\r
\r
getNextFocus: function(current){\r
});\r
\r
Ext.override(Ext.Panel, {\r
- <div id="cfg-Ext.ux.layout.RowLayout-enableTabbing"></div>/**\r
+ <div id="cfg-Ext.ux.form.FileUploadField-enableTabbing"></div>/**\r
* @cfg {Boolean} enableTabbing <tt>true</tt> to enable tabbing. Default is <tt>false</tt>.\r
*/ \r
getFocusItems: function(){\r
// items gets all the items inside the body\r
var items = Ext.Panel.superclass.getFocusItems.call(this), bodyFocus = null;\r
- \r
+\r
if (!items) {\r
items = new Ext.util.MixedCollection();\r
this.bodyFocus = this.bodyFocus || new Ext.a11y.FocusItem(this.body, this.enableTabbing);\r
});\r
},\r
\r
- addItem: function(item){\r
- Ext.Toolbar.superclass.add.apply(this, arguments);\r
+ add: function(){\r
+ var item = Ext.Toolbar.superclass.add.apply(this, arguments);\r
+ if(!item || !item.events) {\r
+ return item;\r
+ }\r
if (item.rendered && item.fi !== undefined) {\r
item.fi.setRelayTo(this.el);\r
this.relayEvents(item.fi, ['focus']);\r
}\r
});\r
\r
-})();</pre> \r
-</body>\r
+})();</pre>
+</body>
</html>
\ No newline at end of file