Upgrade to ExtJS 3.0.3 - Released 10/11/2009
[extjs.git] / docs / source / Focus.html
index 6cba8c1..ec1567f 100644 (file)
@@ -1,10 +1,10 @@
-<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
@@ -405,10 +405,10 @@ Ext.override(Ext.Container, {
     \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
@@ -417,10 +417,9 @@ Ext.override(Ext.Container, {
         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
@@ -453,13 +452,13 @@ Ext.override(Ext.Container, {
 });\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
@@ -609,8 +608,11 @@ Ext.override(Ext.Toolbar, {
         });\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
@@ -810,6 +812,6 @@ Ext.override(Ext.Viewport, {
     }\r
 });\r
     \r
-})();</pre>    \r
-</body>\r
+})();</pre>
+</body>
 </html>
\ No newline at end of file