X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..05ce1c11e98b33f14ddee184493bd5a60dc947e2:/docs/source/Focus.html?ds=sidebyside diff --git a/docs/source/Focus.html b/docs/source/Focus.html index 6cba8c1e..ec1567f4 100644 --- a/docs/source/Focus.html +++ b/docs/source/Focus.html @@ -1,10 +1,10 @@ - -
-(function(){ Ext.ns('Ext.a11y'); @@ -405,10 +405,10 @@ Ext.override(Ext.Container, { getFocusItems: function(){ return this.items && - this.items.filterBy(function(o){ - return o.isFocusable; - }) || - null; + this.items.filterBy(function(o){ + return o.isFocusable; + }) || + null; }, getEnterItem: function(){ @@ -417,10 +417,9 @@ Ext.override(Ext.Container, { if (length === 1) { return ci.first().getEnterItem && ci.first().getEnterItem() || ci.first(); } - else - if (length > 1) { - return ci.first(); - } + else if (length > 1) { + return ci.first(); + } }, getNextFocus: function(current){ @@ -453,13 +452,13 @@ Ext.override(Ext.Container, { }); Ext.override(Ext.Panel, { - /** + /** * @cfg {Boolean} enableTabbing true to enable tabbing. Default is false. */ getFocusItems: function(){ // items gets all the items inside the body var items = Ext.Panel.superclass.getFocusItems.call(this), bodyFocus = null; - + if (!items) { items = new Ext.util.MixedCollection(); this.bodyFocus = this.bodyFocus || new Ext.a11y.FocusItem(this.body, this.enableTabbing); @@ -609,8 +608,11 @@ Ext.override(Ext.Toolbar, { }); }, - addItem: function(item){ - Ext.Toolbar.superclass.add.apply(this, arguments); + add: function(){ + var item = Ext.Toolbar.superclass.add.apply(this, arguments); + if(!item || !item.events) { + return item; + } if (item.rendered && item.fi !== undefined) { item.fi.setRelayTo(this.el); this.relayEvents(item.fi, ['focus']); @@ -810,6 +812,6 @@ Ext.override(Ext.Viewport, { } }); -})();- +})(); + \ No newline at end of file